We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
envPrefix
1 parent efe19a4 commit 897c704Copy full SHA for 897c704
src/content/docs/start/frontend/vite.mdx
@@ -104,7 +104,7 @@ This guide is accurate as of Vite 5.4.8.
104
host: host || false,
105
port: 5173,
106
},
107
- // to access the Tauri environment variables set by the CLI with information about the current target
+ // Env variables starting with the item of `envPrefix` will be exposed in tauri's source code through `import.meta.env`.
108
envPrefix: ['VITE_', 'TAURI_ENV_*'],
109
build: {
110
// Tauri uses Chromium on Windows and WebKit on macOS and Linux
0 commit comments