WiZtEk
WiZtEk
TTCTheo's Typesafe Cult
Created by WiZtEk on 3/26/2024 in #questions
deployment failed with invalid enviroment variables when using t3env on vercel
the error message
> next build
❌ Invalid environment variables: {
NEXTAUTH_SECRET: [ 'Required' ],
DISCORD_CLIENT_ID: [ 'Required' ],
DISCORD_CLIENT_SECRET: [ 'Required' ],
GOOGLE_CLIENT_ID: [ 'Required' ],
GOOGLE_CLIENT_SECRET: [ 'Required' ],
POSTGRES_URL: [ 'Required' ],
POSTGRES_PRISMA_URL: [ 'Required' ],
POSTGRES_URL_NON_POOLING: [ 'Required' ],
POSTGRES_USER: [ 'Required' ],
POSTGRES_HOST: [ 'Required' ],
POSTGRES_PASSWORD: [ 'Required' ],
POSTGRES_DATABASE: [ 'Required' ]
}
⨯ Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
> Build error occurred
Error: Invalid environment variables
at onValidationError (file:///vercel/path0/node_modules/@t3-oss/env-core/dist/index.js:29:15)
at createEnv (file:///vercel/path0/node_modules/@t3-oss/env-core/dist/index.js:35:16)
at createEnv (file:///vercel/path0/node_modules/@t3-oss/env-nextjs/dist/index.js:12:12)
at file:///vercel/path0/src/env.js:4:20
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
Error: Command "npm run build" exited with 1
> next build
❌ Invalid environment variables: {
NEXTAUTH_SECRET: [ 'Required' ],
DISCORD_CLIENT_ID: [ 'Required' ],
DISCORD_CLIENT_SECRET: [ 'Required' ],
GOOGLE_CLIENT_ID: [ 'Required' ],
GOOGLE_CLIENT_SECRET: [ 'Required' ],
POSTGRES_URL: [ 'Required' ],
POSTGRES_PRISMA_URL: [ 'Required' ],
POSTGRES_URL_NON_POOLING: [ 'Required' ],
POSTGRES_USER: [ 'Required' ],
POSTGRES_HOST: [ 'Required' ],
POSTGRES_PASSWORD: [ 'Required' ],
POSTGRES_DATABASE: [ 'Required' ]
}
⨯ Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
> Build error occurred
Error: Invalid environment variables
at onValidationError (file:///vercel/path0/node_modules/@t3-oss/env-core/dist/index.js:29:15)
at createEnv (file:///vercel/path0/node_modules/@t3-oss/env-core/dist/index.js:35:16)
at createEnv (file:///vercel/path0/node_modules/@t3-oss/env-nextjs/dist/index.js:12:12)
at file:///vercel/path0/src/env.js:4:20
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
Error: Command "npm run build" exited with 1
env.js file https://github.com/Abdulkareemoj/Strmr/blob/main/src/env.js
6 replies
TTCTheo's Typesafe Cult
Created by WiZtEk on 12/10/2022 in #questions
error on newly scaffolded app
8 replies