env variables are not visible
rajabovilyas
TRIALOP

2 years ago

I use nodejs for deployment when adding variables in your tab, the code still doesn’t see them

View Deploy details

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

Solved

6 Replies

2 years ago

How are you accessing them?


rajabovilyas
TRIALOP

2 years ago

i get from process.env


dev

How are you accessing them?

rajabovilyas
TRIALOP

2 years ago

i get from process.env


temirlanzhangazy
PRO

2 years ago

DId you install and import dotenv?


temirlanzhangazy

DId you install and import dotenv?

2 years ago

dotenv is not recommended for use on Railway as the service variables are only directly injected into the environment.


2 years ago

rajabovilyas, you have yet to deploy the changes after adding the variables -

Attachments


Welcome!

Sign in to your Railway account to join the conversation.

Loading...