#process.env variable returns undefined

24 messages · Page 1 of 1 (latest)

prisma verge
#

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

strange basinBOT
#

Project ID: c79bd679-e479-4c34-b56d-1acc8c93dfc0

prisma verge
#

c79bd679-e479-4c34-b56d-1acc8c93dfc0

calm lava
#

are you attempting to use these variables at build or deploy

prisma verge
#

I'm trying to use it running locally

#

Just the yarn run start

calm lava
#

are you using railway run? if not, thats what you would want to be using for this usecase

prisma verge
#

hmmm

#

I don't thibk so

#

Just run railway run?

calm lava
#

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

prisma verge
#

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

#

Sorry

calm lava
#

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

prisma verge
#

HAHAHAHA

#

That's true

#

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

#

Thanks, it's working now

calm lava
#

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

prisma verge
#

always should run railway run yarn run start, then?

calm lava
#

correct