#Missing Environment Variables

23 messages · Page 1 of 1 (latest)

short viper
#

I have set up a project that has 15 environment variables but only the first 10 are available in the process itself.

I'm a heavy user of Railway for the past year or so and I've never ran into this issue.

The way I'm checking the variables is by logging process.env to the console.

lament heartBOT
#

Project ID: aa7cf7da-5a01-4af2-8db4-490ae195a3dc

short viper
#

aa7cf7da-5a01-4af2-8db4-490ae195a3dc

ancient flower
#

can you send a screenshot of the console and the variables from the railway dashboard?

short viper
#

After Redis URL they're all missing

ancient flower
#

@past remnant

#

^^

past remnant
#

I mean, the screenshot isn't really clear proof of the claim

short viper
#

log statements

console.log(process.env);
console.log(process.env.ETH_RPC);

results

image above
...
indexer:start: undefined
past remnant
#

I'll look at your project in a bit

short viper
#

thanks boss

past remnant
#

does this use turbo?

short viper
past remnant
#

have you defined the needed variables in the turbo config?

short viper
past remnant
#

you're not the first, and you wont be the last, personally i think that was a terrible decision by turbo

short viper
#

I agree, the worst part is that I've been using turbo on the daily for about a year now harold

past remnant
#

yep its a relatively recent change

short viper
#

It's always been there as far as I remember

#

I have the memory of a goldfish though

past remnant
#

yeah they just changed the defaults around iirc