From 4901a761b31ba8ca926850f5abbc3e27981d2671 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 17 Jun 2024 17:23:21 +0300 Subject: [PATCH 1/2] nosentry-hotfix --- src/renderer/_default.page.client.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/_default.page.client.tsx b/src/renderer/_default.page.client.tsx index d3f9e810..e5592877 100644 --- a/src/renderer/_default.page.client.tsx +++ b/src/renderer/_default.page.client.tsx @@ -1,7 +1,7 @@ import type { PageContextBuiltInClientWithClientRouting } from 'vike/types' import type { PageContext } from './types' -import { init as SentryInit, replayIntegration } from '@sentry/browser' +// import { init as SentryInit, replayIntegration } from '@sentry/browser' import i18next from 'i18next' import HttpApi from 'i18next-http-backend' import ICU from 'i18next-icu' @@ -20,7 +20,7 @@ export const render = async (pageContext: PageContextBuiltInClientWithClientRout const { pathname, search } = window.location const searchParams = Object.fromEntries(new URLSearchParams(search)) initRouter(pathname, searchParams) - + /* SentryInit({ dsn: reportDsn, tracesSampleRate: 0.01, @@ -29,6 +29,7 @@ export const render = async (pageContext: PageContextBuiltInClientWithClientRout replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production. replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. }) + */ // eslint-disable-next-line import/no-named-as-default-member await i18next From 3e214d03520ad3115cb3dd1b7553adc6e020a8d1 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 17 Jun 2024 17:23:49 +0300 Subject: [PATCH 2/2] nosentry-hotfix-2 --- src/renderer/_default.page.client.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/_default.page.client.tsx b/src/renderer/_default.page.client.tsx index e5592877..4e2df0c1 100644 --- a/src/renderer/_default.page.client.tsx +++ b/src/renderer/_default.page.client.tsx @@ -9,7 +9,7 @@ import { hydrate } from 'solid-js/web' import { App } from '../components/App' import { initRouter } from '../stores/router' -import { reportDsn } from '../utils/config' +// import { reportDsn } from '../utils/config' import { resolveHydrationPromise } from '../utils/hydrationPromise' let layoutReady = false