undefined custom variables
blendho
FREEOP

a month ago

Hi, I'm experiencing an issue where custom environment variables are not being injected into my Node.js service. When I print process.env in my app, none of my custom variables appear — only Railway's system variables like RAILWAY_SERVICE_NAME, PORT etc show up. I have RAILWAY_BETA_ENABLE_RUNTIME_V2 in my environment which suggests I'm on Runtime V2. I've tried both Railpack and Nixpacks builders, tried raw editor format, tried reference syntax ${{Postgres.DATABASE_URL}} — nothing works. My custom variables always show as undefined inside the app

$10 Bounty

3 Replies

Status changed to Open Railway about 1 month ago


To clarify, is this a frontend project? (eg, Next.js or Vite)


0x5b62656e5d

To clarify, is this a frontend project? (eg, Next.js or Vite)

blendho
FREEOP

a month ago

Backend project node.js/express


iacopoinved
PRO

21 days ago

same for me in a React project that worked fine for almost a year, suddenly my variables are all undefined when trying to access them...


Welcome!

Sign in to your Railway account to join the conversation.

Loading...