Hello, I am having trouble with fetching my external API information on production in netlify, but locally on local host I am not experiencing any problems especially using the “proxy” use case on package JSON . I looked up on the internet for solutions and the one that keeps on reappearing is this code below on nelify.toml file:
[[redirects]]
from = “/api/*”
to = “https://api.deezer.com/:splat”
status = 200
force = true
[[redirects]]
from = “/*”
to = “/index.html”
status = 200
But this too is not working so do you have any solution? The external API as you can see above is a deezer api.
Hi @Luthando496 , welcome to the forums and thanks so much for reaching out! How exactly are you trying to deploying your app? If you used create-react-app then you could just run npm run build then upload the contents of the build folder to your server