Fix issue preventing build
This commit is contained in:
@@ -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",
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { env } from './src/env'
|
||||
import { env } from './src/env.js'
|
||||
import * as Sentry from "@sentry/nextjs";
|
||||
|
||||
Sentry.init({
|
||||
|
@@ -20,7 +20,7 @@ export default function Page() {
|
||||
const result = await Sentry.diagnoseSdkConnectivity();
|
||||
setIsConnected(result !== 'sentry-unreachable');
|
||||
}
|
||||
checkConnectivity();
|
||||
void checkConnectivity();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user