alephmatic / full-stack-ai

Generate a full-stack Next.js app from an AI prompt
https://fsai.elie.tech
237 stars 35 forks source link

Error: Invalid environment variables on generated website #8

Open ronandoolan2 opened 4 months ago

ronandoolan2 commented 4 months ago

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