'bake' release env variables at build time

This commit is contained in:
Tom Moor 2021-02-12 16:53:16 -08:00
parent 2a225d81d2
commit 7d244dfa1f
1 changed files with 3 additions and 1 deletions

View File

@ -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',