From d1c4924d660f9f3524fefe4b428c5986dcdac13b Mon Sep 17 00:00:00 2001 From: botond <105208209+notbot00@users.noreply.github.com> Date: Fri, 8 Jul 2022 15:23:28 +0100 Subject: [PATCH] fix: remove redundant env settings from explorer (#732) * fix: remove redundant env settings from explorer * fix: format --- apps/explorer/webpack.config.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/apps/explorer/webpack.config.js b/apps/explorer/webpack.config.js index ae7f61492..e13de9186 100644 --- a/apps/explorer/webpack.config.js +++ b/apps/explorer/webpack.config.js @@ -1,13 +1,5 @@ -const { execSync } = require('child_process'); -const webpack = require('webpack'); const SentryPlugin = require('@sentry/webpack-plugin'); -const gitCommitHash = execSync('git rev-parse HEAD').toString(); -const gitOriginUrl = execSync('git remote get-url origin') - .toString() - .replace('ssh://git@github.com', 'https://github.com') - .replace('.git', ''); - module.exports = (config, context) => { const additionalPlugins = process.env.SENTRY_AUTH_TOKEN ? [ @@ -20,13 +12,6 @@ module.exports = (config, context) => { return { ...config, - plugins: [ - ...additionalPlugins, - ...config.plugins, - new webpack.DefinePlugin({ - 'process.env.GIT_COMMIT_HASH': JSON.stringify(gitCommitHash), - 'process.env.GIT_ORIGIN_URL': JSON.stringify(gitOriginUrl), - }), - ], + plugins: [...additionalPlugins, ...config.plugins], }; };