I have a signup page that uses create-react-app on the front end and firebase functions/express on the back end.
Signup works as expected from localhost. But when deployed to Netlify, when I try to signup, there is a 404 POST error in console with my netlify url. I would expect it to be my firebase api url, not my netlify url.
So I am wondering if my proxy I have in my package.json file is not being handled by netlify. I tried adding the firebase api url to my _redirects file but that did not work either.
I don’t know what’s happening since you haven’t told us what site you use or how to reproduce, but I see an antipattern mentioned here:
So I am wondering if my proxy I have in my package.json file is not being handled by netlify.
Yes, that is definitely true. We are a static web host; not sure what proxy you specify there but we only use that file at BUILD time, not at runtime, so…it wouldn’t be available during browse in any case.
Mind sharing enough details about your redirect, for us to debug? e.g. “My site is https://mysite.com and the redirect I’ve tried was /api https://myotherserver.com/ 200!” - that will enable us to give you the best advice