Build-time environment variable validation and injection for Vite

1 Open Issue Need Help Last updated: Jul 17, 2025

Open Issues Need Help

View All on GitHub

AI Summary: Implement a new `generateTypes` option in the `vite-plugin-env-schema` plugin. This option should automatically generate a TypeScript declaration file (virtual-env.d.ts) in the project root, eliminating the need for manual type definition creation. The generated types should be compatible with various schema libraries supported by the plugin (Zod, Valibot, ArkType, Effect Schema, etc.) and should regenerate whenever the schema changes.

Complexity: 3/5
enhancement help wanted

Build-time environment variable validation and injection for Vite

TypeScript