diff --git a/config/webpack.prod.config.js b/config/webpack.prod.config.js index a25c400c..3f91543d 100755 --- a/config/webpack.prod.config.js +++ b/config/webpack.prod.config.js @@ -3,6 +3,7 @@ const Merge = require('webpack-merge'); const commonConfig = require('./webpack.common.config.js'); const path = require('path'); +const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); @@ -91,5 +92,20 @@ module.exports = Merge.smart(commonConfig, { inject: true, // Appends script tags linking to the webpack bundles at the end of the body template: path.resolve(__dirname, '../public/index.html'), }), + new webpack.EnvironmentPlugin({ + NODE_ENV: 'production', + BASE_URL: null, + LMS_BASE_URL: null, + LOGIN_URL: null, + LOGOUT_URL: null, + REFRESH_ACCESS_TOKEN_ENDPOINT: null, + DATA_API_BASE_URL: null, + SEGMENT_KEY: null, + FEATURE_FLAGS: {}, + ACCESS_TOKEN_COOKIE_NAME: null, + CSRF_COOKIE_NAME: 'csrftoken', + NEW_RELIC_APP_ID: null, + NEW_RELIC_LICENSE_KEY: null, + }), ], });