From ad9f78ec174293e5c1cc032e1d04d138a91bd8cb Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Tue, 25 Jun 2024 16:19:02 +0200 Subject: [PATCH] Also allow staging --- config/webpack/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/webpack/webpack.config.js b/config/webpack/webpack.config.js index ef8d54ea93..c191ffb54a 100644 --- a/config/webpack/webpack.config.js +++ b/config/webpack/webpack.config.js @@ -82,7 +82,7 @@ if (process.env.RAILS_ENV === "test") { // only enable sentry in production // as it slows down the build process -if (process.env.NODE_ENV === "production") { +if (process.env.NODE_ENV === "production" || process.env.NODE_ENV === "staging") { config.devtool = "source-map"; // Source map generation must be turned on for sentry to work config. plugins= [ // Put the Sentry Webpack plugin after all other plugins