How to access RAILWAY_DEPLOYMENT_ID?
sam-scolari
PROOP

a year ago

The docs state that RAILWAYDEPLOYMENTID is "provided to all builds and deployments" and yet is not displayed in the variables tab or accessible via process.env, am I missing something?

Solved

14 Replies

sam-scolari
PROOP

a year ago

6b3f7e42-b250-4b53-8639-abb14c79ab8b


sam-scolari
PROOP

a year ago

1346550247043633200


sam-scolari
PROOP

a year ago

1346550377759113200


sam-scolari
PROOP

a year ago

1346550385393008600


a year ago

you're not supposed to create the variable in the service variables tab


a year ago

it's automatically injected at runtime


sam-scolari
PROOP

a year ago

1346551108578840600


sam-scolari
PROOP

a year ago

1346551136567693300


sam-scolari
PROOP

a year ago

(I have removed the one i manually added in the variables tab)


sam-scolari
PROOP

a year ago

Not going to share a screenshot here but logging process.env doesnt show any variables prefixed with RAILWAY


a year ago

it is most definitely there -


sam-scolari
PROOP

a year ago

I see it now, turborepo wasnt including it <:cryfistsq:1238327748464873472>


a year ago

thats turbo and strict mode


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...