aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-04-13 00:03:13 -0700
committerSam Wilkins <samwilkins333@gmail.com>2020-04-13 00:03:13 -0700
commite3a5dc3ce59b1d8f2dde63395505061b304d64c0 (patch)
tree4c67467a701a305d8af41e559b63275aa9b3e77c /webpack.config.js
parentcfe2272c7f9a63edd449b460b31f0c45a77a07ca (diff)
completed migration to webpack-transferred environment variables, rather than a server route
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js3
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;
}, {})));