Closed kevbook closed 9 months ago
The boolean variable will not parse as the right data type. This is because you're setting process.env.VITE_BOOLEAN_VARIABLE = parsed value -- but process.env[key] only accepts strings.
process.env.VITE_BOOLEAN_VARIABLE = parsed value
process.env[key]
export default defineConfig({ plugins: [ ValidateEnv({ VITE_BOOLEAN_VARIABLE: Schema.boolean(), }), ], })
Hey! Sorry for taking so long. Fixed with 1.0.0
https://github.com/Julien-R44/vite-plugin-validate-env/releases/tag/v1.0.0
The boolean variable will not parse as the right data type. This is because you're setting
process.env.VITE_BOOLEAN_VARIABLE = parsed value
-- butprocess.env[key]
only accepts strings.