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:Jump to 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' ]...
5 Replies
Did you update the
auth.ts
file in the server directory and the corresponding variables in the .env
file?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
You need to update the env.mjs file. That contains the logic for env variable validation.
Create T3 App
Environment Variables 🚀 Create T3 App
The best way to start a full-stack, typesafe Next.js app.
it's working now.. I just delete it and deploy it again. But thanks everyone.