Skip to content

Commit

Permalink
docs: using loadEnv for define should use JSON.stringify (#13516)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jun 14, 2023
1 parent 9e1086b commit 1999311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default defineConfig(({ command, mode }) => {
return {
// vite config
define: {
__APP_ENV__: env.APP_ENV,
__APP_ENV__: JSON.stringify(env.APP_ENV),
},
}
})
Expand Down

0 comments on commit 1999311

Please sign in to comment.