process.env variables all empty

Not sure what has changed recently, but now, when I deploy, all of my references to process.env.WHATEVER have empty values. The keys still appear if I throw a console log on process.env but have no value. The values are present in the railway admin. Please advise
20 Replies
Percy
Percy12mo ago
Project ID: c1b075f0-cdf7-409e-8fc0-1f63f0e089cb
divinedimples.
divinedimples.12mo ago
c1b075f0-cdf7-409e-8fc0-1f63f0e089cb
Brody
Brody12mo ago
show some examples if you can please
divinedimples.
divinedimples.12mo ago
yea, so I throw a console log in my node app on process.env and basically just see all my ENV vars as empty:
divinedimples.
divinedimples.12mo ago
No description
divinedimples.
divinedimples.12mo ago
No description
divinedimples.
divinedimples.12mo ago
so build fails never had an issue until recently
Brody
Brody12mo ago
send the build table at the top of the build logs please
divinedimples.
divinedimples.12mo ago

[Region: us-west1]
================
Using Buildpacks
================
context: 2906a478653c2345b00071520a23f1ee
20: Pulling from heroku/buildpacks

[Region: us-west1]
================
Using Buildpacks
================
context: 2906a478653c2345b00071520a23f1ee
20: Pulling from heroku/buildpacks
this?
Brody
Brody12mo ago
oh wow, that explains it, you are still using buildpacks Buildpacks was deprecated long ago
divinedimples.
divinedimples.12mo ago
yea it's been a few minutes since I've deployed updates to this app lol
Brody
Brody12mo ago
will need to tag in @jr here
divinedimples.
divinedimples.12mo ago
Just following up. Anything I can do on my end to fix this?
jr
jr12mo ago
Hey, sorry for taking so long to get back to you. Just taking a look at this now
divinedimples.
divinedimples.12mo ago
no worries! Thanks jr looks like it's working now. Thank you for fixing chefkiss wanted to see if I upgrade to nixpacks through the settings tab, will it break things or require some code-level changes on my end?
jr
jr12mo ago
Glad it is working! Sorry forgot to respond here when that fix was merged yesterday It should just work, but depends a bit on dependencies that your application is using You can try creating another service and building with Nixpacks there if you want to check first
divinedimples.
divinedimples.12mo ago
excellent. My existing service has 3 environments (development, staging, prod) - if I upgraded on the dev environment, will affect staging and prod?
Adam
Adam12mo ago
No, changes made to a staging env aren’t merged to prod unless you click ship it
Brody
Brody12mo ago
isn't that forked environments?
Adam
Adam12mo ago
They were wondering if they could use their forked environments instead
Want results from more Discord servers?
Add your server