Ask coding questions

← Back to all posts
Environment Variables panel Not working
dheerajpv (0)

I added many secrets to the panel on the left, but when accessing them in code using process.env.TOKEN etc, it always returns undefined. even logging the process.env object itself does not have anything I defined in the panel.

How can I fix this so I can get to hosting my apps faster?

JBloves27 (1884)

Which language did you use for this? And could you attach the repl if possible? Thank you!

dheerajpv (0)

@JBloves27 I fixed it by changing it into a bash repl and it seems to work ONLY when I press the start button, not when I run it on console

JBloves27 (1884)

ah, ok! Glad that you fixed your problem! :) @dheerajpv