R
Railway13mo ago
hyrme

RAILWAY_STATIC_URL is empty

I am trying to assign the variable to another variable in the variables settings for the service. I tried API_ENDPOINT=${{RAILWAY_STATIC_URL}}
4 Replies
Percy
Percy13mo ago
Project ID: N/A
Brody
Brody13mo ago
you cant do that unfortunately, the RAILWAY_ variables are only available during build and run time
hyrme
hyrme13mo ago
ouch!! so I need to rewrite my code to grab it from RAILWAY_ directly instead.. thanks!
Brody
Brody13mo ago
you could alias the variables in a .env.production file and then use something like dotenv-expand