Environtmental variable error in vercel

I am trying to deploy t3 app on vercel but I am getting this error ... Invalid environment variables: { DISCORD_CLIENT_ID: [ 'Required' ], DISCORD_CLIENT_SECRET: [ 'Required' ] ... I am using Google like a provider.. And i dont have any DISCORD variables in my code.
Solution:
I am trying to deploy t3 app on vercel but I am getting this error ... Invalid environment variables: { DISCORD_CLIENT_ID: [ 'Required' ], DISCORD_CLIENT_SECRET: [ 'Required' ]...
Jump to solution
5 Replies
romulus_117
romulus_1172y ago
Did you update the auth.ts file in the server directory and the corresponding variables in the .env file?
Aleesssino
AleesssinoOP2y ago
yes.. And added all environtment variables to vercel. On my loclahost:3000 everything working properly. this is another error: error Failed to load next.config.mjs
dan
dan2y ago
You need to update the env.mjs file. That contains the logic for env variable validation.
dan
dan2y ago
Create T3 App
Environment Variables 🚀 Create T3 App
The best way to start a full-stack, typesafe Next.js app.
Aleesssino
AleesssinoOP2y ago
it's working now.. I just delete it and deploy it again. But thanks everyone.
Want results from more Discord servers?
Add your server