full-stack-ai icon indicating copy to clipboard operation
full-stack-ai copied to clipboard

Error: Invalid environment variables on generated website

Open ronandoolan2 opened this issue 10 months ago • 0 comments

Hi,

I keep getting this error when i try to run the generated website

Server Error

Error: Invalid environment variables This error happened while generating the page. Any console logs will be displayed in the terminal window. Source

lib/env.mjs (4:30) @ eval

2 | import { z } from "zod"; 3 |

4 | export const env = createEnv({ | ^ 5 | server: { 6 | NODE_ENV: z 7 | .enum(["development", "test", "production"])

Call Stack

here are my node versions

➜ ~ npm --version 9.6.4 ➜ ~ node --version v20.0.0 ➜ ~ npx --version 9.6.4

ronandoolan2 avatar Apr 24 '24 16:04 ronandoolan2