diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-04-13 00:03:13 -0700 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-04-13 00:03:13 -0700 |
commit | e3a5dc3ce59b1d8f2dde63395505061b304d64c0 (patch) | |
tree | 4c67467a701a305d8af41e559b63275aa9b3e77c /webpack.config.js | |
parent | cfe2272c7f9a63edd449b460b31f0c45a77a07ca (diff) |
completed migration to webpack-transferred environment variables, rather than a server route
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index 9225093be..c8ef269d4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,8 +20,7 @@ const env = require('dotenv').config().parsed; if (env) { plugins.push(new webpack.DefinePlugin(Object.keys(env).reduce((prev, next) => { if (next.startsWith("DASH_")) { - const resolved = next.replace("DASH_", ""); - prev[`process.env.${resolved}`] = JSON.stringify(env[next]); + prev[`process.env.${next.replace("DASH_", "")}`] = JSON.stringify(env[next]); } return prev; }, {}))); |