I have developed a Web-App using react. During development when I make API calls by adding a “proxy” server, it works. API works fine. But when I deployed it on Netlify App. it says “Route not found”. And instead of calling the API route, the client app is using its own API. Like my server is hosted on www.myserver.com/api/get_data. We need to call this API. But my client app is calling www.client.com/api/get_data. How to solve this! I know this may be a little confusing. But I need your help.
perry
2
hi there, i think we would need to see some code or a live site to really assist with this - can you provide a but more information, please?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| My React app works in localhost but doesn't make api calls on netlify | 2 | 464 | September 22, 2023 | |
| React App working on localhost but not working on Netlify deploy because the API call is different | 3 | 5193 | November 16, 2023 | |
| Proxy issue on React app connecting heroku server | 1 | 1123 | April 17, 2022 | |
| I have deployed my front end vite React application and getting 404 error on API call | 14 | 6022 | June 2, 2023 | |
| Calling an API fails when deployed with Netlify, works fine when served locally | 4 | 5354 | January 26, 2021 |