Inline constant
This commit is contained in:
parent
9289bbd0d0
commit
88b4aa02c7
2 changed files with 1 additions and 6 deletions
|
@ -72,10 +72,6 @@ export const getFamilyPortalURL = () => {
|
|||
return `https://family.ente.io`;
|
||||
};
|
||||
|
||||
export const getSentryTunnelURL = () => {
|
||||
return `https://sentry-reporter.ente.io`;
|
||||
};
|
||||
|
||||
/*
|
||||
It's a dev deployment (and should use the environment override for endpoints ) in three cases:
|
||||
1. when the URL opened is that of the staging web app, or
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import * as Sentry from '@sentry/nextjs';
|
||||
import { getSentryTunnelURL } from '@ente/shared/network/api';
|
||||
import { getSentryUserID } from '@ente/shared/sentry/utils';
|
||||
import { runningInBrowser } from '@ente/shared/platform';
|
||||
import { getHasOptedOutOfCrashReports } from '@ente/shared/storage/localStorage/helpers';
|
||||
|
@ -22,7 +21,7 @@ export const setupSentry = async (dsn: string) => {
|
|||
release: SENTRY_RELEASE,
|
||||
attachStacktrace: true,
|
||||
autoSessionTracking: false,
|
||||
tunnel: getSentryTunnelURL(),
|
||||
tunnel: 'https://sentry-reporter.ente.io',
|
||||
beforeSend(event) {
|
||||
event.request = event.request || {};
|
||||
const currentURL = new URL(document.location.href);
|
||||
|
|
Loading…
Add table
Reference in a new issue