Invalid environment

I'm losing my mind with the .env stuff in t3. I set GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET in env.mjs and also set it in .env but it keeps telling me this:
❌ Invalid environment variables: {
GITHUB_CLIENT_ID: [ 'Required' ],
GITHUB_CLIENT_SECRET: [ 'Required' ]
}
❌ Invalid environment variables: {
GITHUB_CLIENT_ID: [ 'Required' ],
GITHUB_CLIENT_SECRET: [ 'Required' ]
}
I'm doing this the same way DISCORD_CLIENT_ID and DISCORD_CLIENT_SECRET were set. How do I fix this?
1 Reply
willm
willm9mo ago
My other environment variables are working well, just adding a new one that's not in the example code is failing I think it's because I had a typo in runtimeEnv though I'm not sure