10 months ago
I have a monorepo with two next.js apps and a hono back-end, to deploy them i have created 3 services and that run build and start command for each app
- the two next.js apps are working fine they get the env vars as they should
- my hono app is working fine, i have added the env vars i deployed that service at least 8 times
- I deleted that service and redeployed it again but my hono app doesn't get the env vars I defined
- at first i was using dotenv/config package but doesnt work
- i deleted that package and started accessse process.env directly but nothing
2 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 Environment variables for python app
- 🧵 502 bad gateway
- 🧵 uvicron app - doesn't read environment variables
- 🧵 Environment Variables Not Loading in Railway Deployment
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
after deleting the service, did you re-added the envs? in theory deleting the service will delete the env as well