aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.prod.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/config/webpack.prod.js')
-rw-r--r--client/config/webpack.prod.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js
index 9bb7306af..3f063c7c6 100644
--- a/client/config/webpack.prod.js
+++ b/client/config/webpack.prod.js
@@ -26,7 +26,8 @@ const METADATA = webpackMerge(commonConfig({env: ENV}).metadata, {
26 host: HOST, 26 host: HOST,
27 port: PORT, 27 port: PORT,
28 ENV: ENV, 28 ENV: ENV,
29 HMR: false 29 HMR: false,
30 API_URL: ''
30}) 31})
31 32
32module.exports = function (env) { 33module.exports = function (env) {
@@ -125,6 +126,7 @@ module.exports = function (env) {
125 new DefinePlugin({ 126 new DefinePlugin({
126 'ENV': JSON.stringify(METADATA.ENV), 127 'ENV': JSON.stringify(METADATA.ENV),
127 'HMR': METADATA.HMR, 128 'HMR': METADATA.HMR,
129 'API_URL': JSON.stringify(METADATA.API_URL),
128 'process.env': { 130 'process.env': {
129 'ENV': JSON.stringify(METADATA.ENV), 131 'ENV': JSON.stringify(METADATA.ENV),
130 'NODE_ENV': JSON.stringify(METADATA.ENV), 132 'NODE_ENV': JSON.stringify(METADATA.ENV),