Vercel RAG template Erroe

Hi, I’m trying to deploy the Vercel RAG template and I keep getting these errors:

Error: Invalid environment variables

13:09:16.633 at onValidationError (/vercel/path0/node_modules/.pnpm/@t3-oss+env-core@0.10.1_typescript@5.5.4_zod@3.23.8/node_modules/@t3-oss/env-core/dist/index.js:29:15)

13:09:16.633 at createEnv (/vercel/path0/node_modules/.pnpm/@t3-oss+env-core@0.10.1_typescript@5.5.4_zod@3.23.8/node_modules/@t3-oss/env-core/dist/index.js:35:16)

13:09:16.633 at createEnv (/vercel/path0/node_modules/.pnpm/@t3-oss+env-nextjs@0.10.1_typescript@5.5.4_zod@3.23.8/node_modules/@t3-oss/env-nextjs/dist/index.js:12:12)

13:09:16.633 at (/vercel/path0/lib/env.mjs:5:20)

13:09:16.633 at Object. (/vercel/path0/lib/env.mjs:25:2)

13:09:16.634 at Module._compile (node:internal/modules/cjs/loader:1469:14)

13:09:16.634 at Object.transformer (/vercel/path0/node_modules/.pnpm/tsx@4.19.0/node_modules/tsx/dist/register-C1urN2EO.cjs:2:1122)

13:09:16.634 at Module.load (node:internal/modules/cjs/loader:1288:32)

13:09:16.634 at Module._load (node:internal/modules/cjs/loader:1104:12)

13:09:16.634 at Module.require (node:internal/modules/cjs/loader:1311:19)

13:09:16.634

13:09:16.634Node.js v20.17.0

13:09:16.649 ELIFECYCLE Command failed with exit code 1.

13:09:16.668Error: Command “pnpm run build” ex

Any ideas on how to fix it?

Hi and welcome, @harchyboy!

What do your environment variables look like?

I connected it to Postgres:


Should it not automatically detect the variables?