Skip to content

Commit 897c704

Browse files
authored
style: explain the configuration function of envPrefix in vite (#2865)
1 parent efe19a4 commit 897c704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/start/frontend/vite.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ This guide is accurate as of Vite 5.4.8.
104104
host: host || false,
105105
port: 5173,
106106
},
107-
// to access the Tauri environment variables set by the CLI with information about the current target
107+
// Env variables starting with the item of `envPrefix` will be exposed in tauri's source code through `import.meta.env`.
108108
envPrefix: ['VITE_', 'TAURI_ENV_*'],
109109
build: {
110110
// Tauri uses Chromium on Windows and WebKit on macOS and Linux

0 commit comments

Comments
 (0)