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.
1 parent 2371c1c commit 6b9c7c6Copy full SHA for 6b9c7c6
vite.config.mjs
@@ -9,9 +9,9 @@ export default defineConfig(({ mode }) => {
9
const env = {}
10
11
// Filter env to variables starting with VITE_APP or VUE_APP
12
- Object.keys({...process.env, ...viteEnv}).forEach(key => {
+ Object.entries({...process.env, ...viteEnv}).forEach(([key, value]) => {
13
if (key.startsWith('VITE_APP') || key.startsWith('VUE_APP')) {
14
- env[key] = viteEnv[key]
+ env[key] = value
15
}
16
})
17
0 commit comments