diff --git a/app/client/craco.build.config.js b/app/client/craco.build.config.js index 4c29565934..f7f720ff5f 100644 --- a/app/client/craco.build.config.js +++ b/app/client/craco.build.config.js @@ -8,21 +8,6 @@ const env = process.env.REACT_APP_ENVIRONMENT; const plugins = []; -if (env === "PRODUCTION" || env === "STAGING") { - plugins.push( - new SentryWebpackPlugin({ - include: "build", - ignore: ["node_modules", "webpack.config.js"], - setCommits: { - auto: true - }, - release: process.env.REACT_APP_SENTRY_RELEASE, - deploy: { - env: process.env.REACT_APP_SENTRY_ENVIRONMENT - } - }), - ); -} plugins.push( new WorkboxPlugin.InjectManifest({ swSrc: "./src/serviceWorker.js", @@ -32,6 +17,21 @@ plugins.push( }), ); +if (env === "PRODUCTION" || env === "STAGING") { + plugins.push( + new SentryWebpackPlugin({ + include: "build", + ignore: ["node_modules", "webpack.config.js"], + setCommits: { + auto: true + }, + deploy: { + env: process.env.REACT_APP_SENTRY_ENVIRONMENT + } + }), + ); +} + module.exports = merge(common, { webpack: { plugins: plugins, diff --git a/app/client/src/configs/index.ts b/app/client/src/configs/index.ts index 349c9e2c40..3a77498a8f 100644 --- a/app/client/src/configs/index.ts +++ b/app/client/src/configs/index.ts @@ -136,8 +136,8 @@ export const getAppsmithConfigs = (): AppsmithUIConfigs => { APPSMITH_FEATURE_CONFIGS.sentry.release, ); const sentryENV = getConfig( - APPSMITH_FEATURE_CONFIGS.sentry.environment, ENV_CONFIG.sentry.environment, + APPSMITH_FEATURE_CONFIGS.sentry.environment, ); const segment = getConfig( ENV_CONFIG.segment,