IO-3162 Add Prod/Test restriction on sentry init.
This commit is contained in:
@@ -17,8 +17,8 @@ const currentDatePST = new Date()
|
||||
const sentryRelease =
|
||||
`${import.meta.env.VITE_APP_IS_TEST ? "test" : "production"}-${currentDatePST}-${process.env.VITE_GIT_COMMIT_HASH}`.trim();
|
||||
|
||||
//if (import.meta.env.PROD) {
|
||||
Sentry.init({
|
||||
if (!import.meta.env.DEV) {
|
||||
Sentry.init({
|
||||
dsn: InstanceRenderManager({
|
||||
imex: "https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027",
|
||||
rome: "https://a6acc91c073e414196014b8484627a61@o492140.ingest.sentry.io/4504561071161344"
|
||||
@@ -59,5 +59,5 @@ Sentry.init({
|
||||
replaysOnErrorSampleRate: 1.0,
|
||||
environment: import.meta.env.MODE,
|
||||
beforeBreadcrumb: excludeGraphQLFetch
|
||||
});
|
||||
//}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user