Environment variables not being injected into service
smcelhinney
PROOP

3 months ago

On this service, https://railway.com/project/10d86c69-8ae1-4eaf-98de-deeea10b938a/service/eb1cce1b-8fd4-433a-82f7-cb0842da9d91?environmentId=ddbdc32e-b5bf-41a5-8fe3-404d12de1c3c I have environment variables configured, however when I use process.env to console.log them out at runtime, the environment variables are not available.

Funnily enough, I can see the variables when I run railway variables from the CLI.

Have I done something wrong?

Solved

3 Replies

Railway
BOT

3 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


brody
EMPLOYEE

3 months ago

Hello,

This would be Turbo's default configuration, to not include any variables unless manually defined.

Please see Turbo's docs on this topic.

https://turborepo.com/docs/crafting-your-repository/using-environment-variables#environment-modes

Best,
Brody


Status changed to Awaiting User Response Railway 3 months ago


smcelhinney
PROOP

3 months ago

Yep, this was totally it. Thanks.


Status changed to Awaiting Railway Response Railway 3 months ago


Status changed to Solved brody 3 months ago


Loading...