Issue with environment variables
appnuer
HOBBYOP
10 months ago
I have a Node.js project and I'm adding an environment variable in Railway, but even when accessing it as process.env.APP_NAME, it's returning undefined."
3 Replies
Railway
BOT
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 Environment variable seems to be cached or not updating
- 🧵 Defined environment variable
- 🧵 Environment variable mapping
If you find the answer from one of these, please let us know by solving the thread!
jasonfma
PRO
10 months ago
Where are you setting the environment variable? Can you share the screenshot?
fra
HOBBY
10 months ago
did you set the variable in the service or as shared variable? did you redeploy after setting the variable?
