Julien-R44 / vite-plugin-validate-env

✅ Vite plugin for validating your environment variables
MIT License
164 stars 6 forks source link

Allow validating environment vars without prefix #26

Open biesbjerg opened 4 months ago

biesbjerg commented 4 months ago

Potentiel fix for #25

Julien-R44 commented 4 months ago

Hey thanks for the PR!

Could you also provide some tests for that, and also updating the documentation ( README ) ?

Julien-R44 commented 4 months ago

Also adding a test to ensure that non-prefixed variables are not exposed in the client would be nice. Looking at the code of loadEnv it doesn't seem to be the case, but it's something important to test now.