diff --git a/keyserver/Dockerfile b/keyserver/Dockerfile --- a/keyserver/Dockerfile +++ b/keyserver/Dockerfile @@ -21,6 +21,7 @@ ARG HOST_UID ARG HOST_GID ARG COMM_ALCHEMY_KEY +ARG COMM_WALLETCONNET_KEY USER root RUN \ diff --git a/keyserver/docker-compose.yml b/keyserver/docker-compose.yml --- a/keyserver/docker-compose.yml +++ b/keyserver/docker-compose.yml @@ -8,6 +8,7 @@ - HOST_UID=${HOST_UID} - HOST_GID=${HOST_GID} - COMM_ALCHEMY_KEY=${COMM_ALCHEMY_KEY} + - COMM_WALLETCONNET_KEY=${COMM_WALLETCONNET_KEY} image: commapp/node-keyserver:1.0 restart: always ports: diff --git a/lib/webpack/shared.cjs b/lib/webpack/shared.cjs --- a/lib/webpack/shared.cjs +++ b/lib/webpack/shared.cjs @@ -90,6 +90,7 @@ } const alchemyKey = process.env.COMM_ALCHEMY_KEY; +const walletConnectKey = process.env.COMM_WALLETCONNET_KEY; function createProdBrowserConfig(baseConfig, babelConfig) { const browserConfig = createBaseBrowserConfig(baseConfig); @@ -104,6 +105,7 @@ NODE_ENV: JSON.stringify('production'), BROWSER: true, COMM_ALCHEMY_KEY: JSON.stringify(alchemyKey), + COMM_WALLETCONNET_KEY: JSON.stringify(walletConnectKey), }, }), new MiniCssExtractPlugin({ @@ -170,6 +172,7 @@ NODE_ENV: JSON.stringify('development'), BROWSER: true, COMM_ALCHEMY_KEY: JSON.stringify(alchemyKey), + COMM_WALLETCONNET_KEY: JSON.stringify(walletConnectKey), }, }), new ReactRefreshWebpackPlugin(), @@ -240,6 +243,7 @@ new webpack.DefinePlugin({ 'process.env': { COMM_ALCHEMY_KEY: JSON.stringify(alchemyKey), + COMM_WALLETCONNET_KEY: JSON.stringify(walletConnectKey), }, }), ],