Skip to content

Commit

Permalink
Dynamicly set NODE_ENV environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick11514 committed Sep 26, 2024
1 parent 9ba73bd commit 4216b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
// Replace the environment variables - https://github.com/rollup/rollup/issues/805
// btw the vue/dist/vue.esm.browser didn't work
replace({
'process.env.NODE_ENV': JSON.stringify('development'),
'process.env.NODE_ENV': JSON.stringify(production ? 'production' : 'development'),
'process.env.VUE_ENV': JSON.stringify('browser'),
}),
typescript({
Expand Down

0 comments on commit 4216b48

Please sign in to comment.