Compare commits

...

2 Commits

Author SHA1 Message Date
703510afa7 Enable sentry session replay 2026-03-11 02:28:54 -04:00
6152dd27e0 Don't reset turnstile when it's never loaded 2026-03-11 02:27:37 -04:00
2 changed files with 11 additions and 3 deletions

View File

@@ -10,7 +10,13 @@ Sentry.init({
dsn:
document.querySelector("meta[name='dsn']")?.getAttribute("content") ??
undefined,
integrations: [Sentry.browserTracingIntegration()],
integrations: [
Sentry.browserTracingIntegration(),
Sentry.replayIntegration(),
],
replaysOnErrorSampleRate: 1,
replaysSessionSampleRate: 0.02,
sendDefaultPii: true,
tracesSampleRate: 0.1,
});

View File

@@ -229,8 +229,10 @@ export default function () {
method: "POST",
});
// @ts-expect-error
turnstile.reset();
if (!logged_in) {
// @ts-expect-error
turnstile.reset();
}
return toast({
description: "Failed to upload file",