R
Railway•10mo ago
nitish_18911

Environment Variable Not found

I am using nodejs as a backend and the config plugin with it to get the access to the Railway envoironment variable. However, I am unable to get the variable from after adding it to Raiway variables as it says the varaiable not found.
5 Replies
Percy
Percy•10mo ago
Project ID: c8a65cf9-8c44-4bc5-af20-abedcaf6b196
nitish_18911
nitish_18911•10mo ago
c8a65cf9-8c44-4bc5-af20-abedcaf6b196 Project ID: c8a65cf9-8c44-4bc5-af20-abedcaf6b196
Brody
Brody•10mo ago
just as a test, are you able to access the variable with process.env.variable_name
nitish_18911
nitish_18911•10mo ago
It worked with process.env, as we were using config module however, it was working in past now it is not working. Strange 😕
Brody
Brody•10mo ago
this would be an issue with the code then, please look into the documentation for the config module