2 hours ago
There are lots of threads back and forth in central station on this, can we get an update to the docs at https://docs.railway.com/variables/reference#railway-provided-variables to indicate which variables are available at build and which ones are at runtime?
For example I attempted to use the RAILWAY_DEPLOYMENT_ID as my deploymentId for a NextJS server and that well... didn't work out as it was blank during builds causing cache busting to fail
1 Replies
2 hours ago
The reference page currently groups all Railway-provided variables under "all builds and deployments" without distinguishing which ones carry a value at build time vs. only at runtime. We have noted the feedback to clarify that distinction in the docs, since variables like RAILWAY_DEPLOYMENT_ID that depend on a deployment existing would naturally be empty during the build phase.
Status changed to Awaiting User Response Railway • about 2 hours ago