process.env variable returns undefined
kevinuzan
HOBBYOP

2 years ago

I have my project, and I'm trying to get variables from it, I have declared it in the "Variables" section, but it just returns "undefined" when I try to run it

22 Replies

kevinuzan
HOBBYOP

2 years ago

c79bd679-e479-4c34-b56d-1acc8c93dfc0


kevinuzan
HOBBYOP

2 years ago

1252462257338716200


2 years ago

are you attempting to use these variables at build or deploy


kevinuzan
HOBBYOP

2 years ago

I'm trying to use it running locally


kevinuzan
HOBBYOP

2 years ago

Just the yarn run start


2 years ago

are you using railway run?


kevinuzan
HOBBYOP

2 years ago

hmmm


kevinuzan
HOBBYOP

2 years ago

I don't thibk so


kevinuzan
HOBBYOP

2 years ago

Just run railway run?


2 years ago

do you think you could share why these variables would become available locally purely by setting them on railway?


kevinuzan
HOBBYOP

2 years ago

It's been a while since I don't use railway, I'm coming back to it just now, but got the idea


kevinuzan
HOBBYOP

2 years ago

Sorry


2 years ago

that would be quite the backdoor railway would have if they could magically set environment variables on your computer without you doing anything


kevinuzan
HOBBYOP

2 years ago

HAHAHAHA


kevinuzan
HOBBYOP

2 years ago

That's true


kevinuzan
HOBBYOP

2 years ago

I was kinda confused actually, but I was hoping some magic could happen ahahaha]


kevinuzan
HOBBYOP

2 years ago

Thanks, it's working now


2 years ago

you might be coming back to to railway but your brain has yet to arrive at the station


kevinuzan
HOBBYOP

2 years ago

always should run railway run yarn run start, then?


2 years ago

correct


kevinuzan
HOBBYOP

2 years ago

Sure sure hahaha


kevinuzan
HOBBYOP

2 years ago

Thanks


Loading...