From 25e7c3231a1baeeb1f4f98691774f53f243a7bd7 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 22 Nov 2023 12:40:12 +0100 Subject: [PATCH] refs #5815 ci: set custom NODE_ENV in environment --- quasar.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/quasar.config.js b/quasar.config.js index cbcbae4dc..4de730515 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -66,7 +66,9 @@ module.exports = configure(function (/* ctx */) { // publicPath: '/', // analyze: true, // env: {}, - // rawDefine: {} + rawDefine: { + 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV) + }, // ignorePublicFolder: true, // minify: false, // polyfillModulePreload: true, @@ -79,6 +81,12 @@ module.exports = configure(function (/* ctx */) { viteConf.build.modulePreload = { polyfill: false, }; + + // this.env={ + // 'process.env.NODE_ENV': 'test1', + // NODE_ENV: 'test2' + + // } }, // viteVuePluginOptions: {},