1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 02:25:22 -04:00
jarv.is/instrumentation.ts

14 lines
326 B
TypeScript

import * as Sentry from "@sentry/nextjs";
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
await import("./sentry.server.config");
}
if (process.env.NEXT_RUNTIME === "edge") {
await import("./sentry.edge.config");
}
}
export const onRequestError = Sentry.captureRequestError;