Skip to content

Commit 06c9bc0

Browse files
author
Dorin Paslaru
authored
Merge pull request #83 from smiclea/CORWEB-108
Set 'process.env.CORIOLIS_URL' as a global variable instead of having to use 'CORIOLIS_URL' in ‘config.js’ when developing CORWEB-108
2 parents 7d114cb + 31dcd37 commit 06c9bc0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const clientConfig = extend(true, {}, config, {
128128
new webpack.DefinePlugin({
129129
...GLOBALS,
130130
'process.env.BROWSER': true,
131-
CORIOLIS_URL: JSON.stringify(process.env.CORIOLIS_URL)
131+
'process.env.CORIOLIS_URL': JSON.stringify(process.env.CORIOLIS_URL)
132132
}),
133133
new AssetsPlugin({
134134
path: path.join(__dirname, '../build'),
@@ -185,7 +185,7 @@ const serverConfig = extend(true, {}, config, {
185185
plugins: [
186186
...config.plugins,
187187
new webpack.DefinePlugin({ ...GLOBALS, 'process.env.BROWSER': false,
188-
CORIOLIS_URL: JSON.stringify(process.env.CORIOLIS_URL) }),
188+
'process.env.CORIOLIS_URL': JSON.stringify(process.env.CORIOLIS_URL) }),
189189
new webpack.BannerPlugin('require("source-map-support").install();',
190190
{ raw: true, entryOnly: false }),
191191
],

0 commit comments

Comments
 (0)