moved sentry plugin to the end so sourcemaps are generated correctly
This commit is contained in:
parent
5949ad8343
commit
28f70e911f
|
|
@ -8,21 +8,6 @@ const env = process.env.REACT_APP_ENVIRONMENT;
|
||||||
|
|
||||||
const plugins = [];
|
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(
|
plugins.push(
|
||||||
new WorkboxPlugin.InjectManifest({
|
new WorkboxPlugin.InjectManifest({
|
||||||
swSrc: "./src/serviceWorker.js",
|
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, {
|
module.exports = merge(common, {
|
||||||
webpack: {
|
webpack: {
|
||||||
plugins: plugins,
|
plugins: plugins,
|
||||||
|
|
|
||||||
|
|
@ -136,8 +136,8 @@ export const getAppsmithConfigs = (): AppsmithUIConfigs => {
|
||||||
APPSMITH_FEATURE_CONFIGS.sentry.release,
|
APPSMITH_FEATURE_CONFIGS.sentry.release,
|
||||||
);
|
);
|
||||||
const sentryENV = getConfig(
|
const sentryENV = getConfig(
|
||||||
APPSMITH_FEATURE_CONFIGS.sentry.environment,
|
|
||||||
ENV_CONFIG.sentry.environment,
|
ENV_CONFIG.sentry.environment,
|
||||||
|
APPSMITH_FEATURE_CONFIGS.sentry.environment,
|
||||||
);
|
);
|
||||||
const segment = getConfig(
|
const segment = getConfig(
|
||||||
ENV_CONFIG.segment,
|
ENV_CONFIG.segment,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user