You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow custom vite env prefix (#4676) (dfdb9cc)
+++ b/docs/config/index.md@@ -333,6 +333,18 @@ export default defineConfig(async ({ command, mode }) => {
See [here](/guide/env-and-mode#env-files) for more about environment files.
+### envPrefix++- **Type:** `string | string[]`+- **Default:** `VITE_`++ Env variables starts with `envPrefix` will be exposed to your client source code via import.meta.env.++:::warning SECURITY NOTES++- `envPrefix` should not be set as `''`, which will expose all your env variables and cause unexpected leaking of of sensitive information. Vite will throw error when detecting `''`.+ :::+## Server Options### server.host
The text was updated successfully, but these errors were encountered:
feat: allow custom vite env prefix (#4676) (dfdb9cc)
The text was updated successfully, but these errors were encountered: