19 days ago
A newly-added service variable (GOOGLE_AI_KEY) does not appear in process.env at runtime, while all previously-added variables (DATABASE_URL, GOOGLE_CLIENT_ID, SESSION_SECRET, etc.) inject correctly. I've confirmed via a diagnostic route that Object.keys(process.env) does not include the new variable name, despite it showing with a value in the Variables tab. I've tried: deleting and re-adding via both the Raw Editor and the New Variable form, forcing fresh redeploys (empty commits), and restarting the service. The variable still never reaches the process. Node.js service, single production environment. What would cause a saved variable to not be injected when other variables on the same service inject fine?
1 Replies
19 days ago
Adding or updating a variable in the Variables tab creates a staged change that must be deployed via the purple "Deploy" banner at the top of the canvas. An empty-commit push triggers a rebuild from Git but does not apply pending staged changes, so the new variable would not be included. Check for any undeployed staged changes and deploy them from the banner to ensure the variable is injected.
Status changed to Awaiting User Response Railway • 19 days ago
12 days ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 12 days ago