invalid environment variables

I logged all variables all of them are undefined, what might have gone wrong?
{
DATABASE_URL: undefined,
NEXTAUTH_SECRET: undefined,
NEXTAUTH_URL: undefined,
GOOGLE_CLIENT_ID: undefined,
GOOGLE_CLIENT_SECRET: undefined,
NEXT_PUBLIC_BACKEND_URL: undefined,
NEXT_PUBLIC_BACKEND_WS_URL: undefined
}
{
DATABASE_URL: undefined,
NEXTAUTH_SECRET: undefined,
NEXTAUTH_URL: undefined,
GOOGLE_CLIENT_ID: undefined,
GOOGLE_CLIENT_SECRET: undefined,
NEXT_PUBLIC_BACKEND_URL: undefined,
NEXT_PUBLIC_BACKEND_WS_URL: undefined
}
4 Replies
oskarpuchalski
oskarpuchalski14mo ago
What file are you storing them in?
Ali
Ali14mo ago
.env @Oskar Puchalski
oskarpuchalski
oskarpuchalski14mo ago
try .env.local
Pitus
Pitus14mo ago
have you typed them out? in t3 you have to type your envs
Want results from more Discord servers?
Add your server
More Posts