diff --git a/CHANGELOG.md b/CHANGELOG.md index 740c2d0142..4f29745131 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - [\#2015](https://github.com/cosmos/voyager/issues/2015) fixed error that showed wrong message when Ledger's screensaver mode was on @fedekunze - Reconnected event was not triggered after reconnection @faboweb - [\#2094](https://github.com/cosmos/voyager/pull/2094) fix Toolbar @faboweb +- Fix Webpack Env variables @sabau ### Changed diff --git a/webpack.renderer.config.js b/webpack.renderer.config.js index d51f2c7945..8c43c98ebe 100644 --- a/webpack.renderer.config.js +++ b/webpack.renderer.config.js @@ -114,12 +114,13 @@ const rendererConfig = { new webpack.DefinePlugin({ "global.GENTLY": false }), - new webpack.DefinePlugin({ - "process.env.RELEASE": `"${commitHash}"` - }), new webpack.DefinePlugin({ "process.env": { - NODE_ENV: JSON.stringify(process.env.NODE_ENV) + NODE_ENV: JSON.stringify(process.env.NODE_ENV), + FAUCET: JSON.stringify(process.env.FAUCET), + RPC: JSON.stringify(process.env.RPC), + STARGATE: JSON.stringify(process.env.STARGATE), + RELEASE: JSON.stringify(commitHash) } }), new HtmlWebpackPlugin({ @@ -210,4 +211,4 @@ if (process.env.RELEASE) { ) } -module.exports = rendererConfig \ No newline at end of file +module.exports = rendererConfig