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

@@ -24,7 +24,7 @@
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-tabs": "^1.1.13",
"@sentry/nextjs": "^10",
"@sentry/nextjs": "^10.12.0",
"@t3-oss/env-nextjs": "^0.13.8",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",

View File

@@ -1,4 +1,4 @@
import { env } from './src/env'
import { env } from './src/env.js'
import * as Sentry from "@sentry/nextjs";
Sentry.init({

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);
};