Hey all, our team is having issues with loading en...
# help
l
Hey all, our team is having issues with loading environment variables in our app. We’ve been setting variables through console.seed.run, which has been working well. Recently, new variables we’ve been adding haven’t been picked up in the app, even after re-deploying stages. We use
process.env
to load variables:
Copy code
const twitterClientId = process.env.TWITTER_CLIENT_ID;
And now get errors like this:
Copy code
{
    "errorType": "Error",
    "errorMessage": "Missing TWITTER_CLIENT_ID environment variable",
    "stack": [
        "Error: Missing TWITTER_CLIENT_ID environment variable",
        ...
}
t
are you passing this through to the function?
in your stacks code
l
Ah of course, totally forgot about this 😅
Thanks!!