bbot
Can't get React + Docker production running with ENV variables
Hello!
I have a Create React app, attempting to load via Dockerfile. Works perfectly fine in dev with variables and using
npm run dev
For production, followed this common answer that didn't work
I'm wondering if it's because I had to eject the app maybe? Not sure, but here is where I am now. This is my package.json
:
This is my Dockerfile:
When I deploy in prod, I'm getting these errors:
I have the environment variables just like I have in dev. I don't understand why it can't find any of the environment variables declared the Railway. Any help?
Project ID: c7f059bc-d402-459e-afbb-0d4892a4b1a59 replies