External API in react

Hi! I am new to development in React and I don’t know exactly how to deploy my application… The case is that I have deployed my site by dragging the folder to Netlify (easy mode) and I have the project pointing to an external API in springboot to get the data, locally, this is configured in the proxy inside the package.json, but when I deploy, netlify ignores the proxy and points to itself when making requests and fails. Should it be configured somewhere in netlify? Many thanks.

Depends how you access it as to what configuration will be best. If you do need to set up proxying, you can still drag and drop - but you do have to configure it separately, as described here:

Drag and drop deploys support both _redirects and netlify.toml :slight_smile:

Thanks a lot! Im goint to try that :slight_smile:

1 Like