Fix issue preventing build

This commit is contained in:
2025-09-16 13:08:06 -05:00
parent 926f31b3aa
commit 3a0263b96b
6 changed files with 101 additions and 229 deletions

View File

@@ -20,7 +20,7 @@ export default function Page() {
const result = await Sentry.diagnoseSdkConnectivity();
setIsConnected(result !== 'sentry-unreachable');
}
checkConnectivity();
void checkConnectivity();
}, []);
return (

View File

@@ -1,3 +1,7 @@
import * as Sentry from '@sentry/nextjs';
import type { Instrumentation } from 'next';
export const register = async () => await import('../sentry.server.config');
export const onRequestError = Sentry.captureRequestError;
export const onRequestError: Instrumentation.onRequestError = (...args) => {
Sentry.captureRequestError(...args);
};