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_11717mo ago
Did you update the auth.ts file in the server directory and the corresponding variables in the .env file?
Aleesssino
Aleesssino17mo 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
dan17mo ago
You need to update the env.mjs file. That contains the logic for env variable validation.
dan
dan17mo ago
Create T3 App
Environment Variables 🚀 Create T3 App
The best way to start a full-stack, typesafe Next.js app.
Aleesssino
Aleesssino17mo 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