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
Percy7mo ago
Project ID: c1b075f0-cdf7-409e-8fc0-1f63f0e089cb
divinedimples.
divinedimples.7mo ago
c1b075f0-cdf7-409e-8fc0-1f63f0e089cb
Brody
Brody7mo ago
show some examples if you can please
divinedimples.
divinedimples.7mo 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.7mo ago
No description
divinedimples.
divinedimples.7mo ago
No description
divinedimples.
divinedimples.7mo ago
so build fails never had an issue until recently
Brody
Brody7mo ago
send the build table at the top of the build logs please
divinedimples.
divinedimples.7mo 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
Brody7mo ago
oh wow, that explains it, you are still using buildpacks Buildpacks was deprecated long ago
divinedimples.
divinedimples.7mo ago
yea it's been a few minutes since I've deployed updates to this app lol
Brody
Brody7mo ago
will need to tag in @jr here
divinedimples.
divinedimples.7mo ago
Just following up. Anything I can do on my end to fix this?
jr
jr7mo ago
Hey, sorry for taking so long to get back to you. Just taking a look at this now
divinedimples.
divinedimples.7mo 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
jr7mo 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.7mo ago
excellent. My existing service has 3 environments (development, staging, prod) - if I upgraded on the dev environment, will affect staging and prod?
Adam
Adam7mo ago
No, changes made to a staging env aren’t merged to prod unless you click ship it
Brody
Brody7mo ago
isn't that forked environments?
Adam
Adam7mo ago
They were wondering if they could use their forked environments instead
Want results from more Discord servers?
Add your server
More Posts