import * as Sentry from "@sentry/nextjs" import { isEdge } from "@scandic-hotels/common/utils/isEdge" export async function register() { await configureSentry() } export const onRequestError = Sentry.captureRequestError async function configureSentry() { if (isEdge) { await import("./sentry.edge.config") } else { await import("./sentry.server.config") } }