IO-3162 Add Prod/Test restriction on sentry init.

This commit is contained in:
Patrick Fic
2025-02-28 15:14:56 -08:00
parent 617e39eb17
commit 65fb73ae82

View File

@@ -17,7 +17,7 @@ const currentDatePST = new Date()
const sentryRelease = const sentryRelease =
`${import.meta.env.VITE_APP_IS_TEST ? "test" : "production"}-${currentDatePST}-${process.env.VITE_GIT_COMMIT_HASH}`.trim(); `${import.meta.env.VITE_APP_IS_TEST ? "test" : "production"}-${currentDatePST}-${process.env.VITE_GIT_COMMIT_HASH}`.trim();
//if (import.meta.env.PROD) { if (!import.meta.env.DEV) {
Sentry.init({ Sentry.init({
dsn: InstanceRenderManager({ dsn: InstanceRenderManager({
imex: "https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027", imex: "https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027",
@@ -60,4 +60,4 @@ Sentry.init({
environment: import.meta.env.MODE, environment: import.meta.env.MODE,
beforeBreadcrumb: excludeGraphQLFetch beforeBreadcrumb: excludeGraphQLFetch
}); });
//} }