wasp icon indicating copy to clipboard operation
wasp copied to clipboard

Build time validation for client env

Open infomiho opened this issue 2 months ago • 0 comments

This replaces build-time env validation validate-env.mjs script (removed in #2362) with a simple Vite plugin. It removes the dotenv dep requirement and uses the same Zod schema that the runtime validation uses.

This enables us to fail faster in the terminal vs. in the browser console: Screenshot 2024-11-29 at 11 05 53

infomiho avatar Nov 29 '24 09:11 infomiho