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], }; };