18 days ago
Builds failing since 27 July with "failed to solve: secret NODE_ENV not found". Tried both Railpack and Nixpacks, same error. Deleted and re-added variables, no change. App still online on an older build. Node app deployed from GitHub. Project melodious-connection.
2 Replies
18 days ago
Your environment variables are misconfigured: the variable names contain the values inside them (e.g. the name is literally NODE_ENV - production instead of a variable named NODE_ENV set to value production). The same applies to your session secret variable. The builder looks for a secret called NODE_ENV and finds nothing with that exact name. Delete these variables and re-add them with just the clean name on the left (e.g. NODE_ENV) and the value on the right (e.g. production), then redeploy.
Status changed to Awaiting User Response Railway • 18 days ago
Railway
Your environment variables are misconfigured: the variable names contain the values inside them (e.g. the name is literally `NODE_ENV - production` instead of a variable named `NODE_ENV` set to value `production`). The same applies to your session secret variable. The builder looks for a secret called `NODE_ENV` and finds nothing with that exact name. Delete these variables and re-add them with just the clean name on the left (e.g. `NODE_ENV`) and the value on the right (e.g. `production`), then redeploy.
18 days ago
Thank you so much, that resolved it for me
Status changed to Awaiting Railway Response Railway • 18 days ago
Status changed to Solved Railway • 18 days ago