ENVIRONMENT VARIABLES ARE UNDEFINED
aetheric0
TRIALOP

a year ago

I have added my environment variables as shared variables, but it keeps reading the MONGOURI variable i defined as undefined when it has a value. On local machine the value is being read correctly from the dotenv file using the process.env.MONGOURI property.

Please who can be of assistance

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

3 Replies

brody
EMPLOYEE

a year ago

Looks like your latest deploy is online, so I will mark this as solved!


Status changed to Solved brody 11 months ago


ohabash
FREE

7 months ago

I have the same prob. my shared vars are shared to all services in my environent but at run time `

process.env.MONGO_URI

is undefined. but they are clearly there. any idea?

Attachments


Status changed to Open Railway 7 months ago


ohabash

I have the same prob. my shared vars are shared to all services in my environent but at run time `process.env.MONGO_URIis undefined. but they are clearly there. any idea?

brody
EMPLOYEE

7 months ago

You need to deploy the changes.


Loading...