Paste a .env → production-shaped env.ts with Zod schema, types-only file,
and .env.example with comments. No signup. LLM-named.
⌘+Enter to generate.
// Zod-validated env.ts will appear here // Type-only Env will appear here # .env.example with comments will appear here 1. Save the panels as src/env.ts (with Zod runtime), src/env-types.ts (types-only), and .env.example at your repo root.
2. Install Zod (peer-dep for the schema file):
npm i zod
3. Load + validate at app start:
import { env } from "./env";
console.log(`Server starting on port $${env.PORT}`); If a required env var is missing or mis-typed, the import throws with the failing key — fail-fast at boot beats process.env.X! exploding in production.