From 7d244dfa1f43b5821a42d5b6589f257ec8b4c554 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 12 Feb 2021 16:53:16 -0800 Subject: [PATCH] 'bake' release env variables at build time --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 8b2eca63d..fc0421fff 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -50,7 +50,9 @@ module.exports = { }, plugins: [ new webpack.DefinePlugin({ - EDITOR_VERSION: JSON.stringify(pkg.version) + "process.env.SOURCE_COMMIT": JSON.stringify(process.env.SOURCE_COMMIT), + "process.env.SOURCE_VERSION": JSON.stringify(process.env.SOURCE_VERSION), + "EDITOR_VERSION": JSON.stringify(pkg.version) }), new webpack.ProvidePlugin({ fetch: 'imports-loader?this=>global!exports-loader?global.fetch!isomorphic-fetch',