Files
mintel.me/apps/web/instrumentation.ts
Marc Mintel cf3a96cead
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🧪 QA (push) Successful in 6m36s
Build & Deploy / 🏗️ Build (push) Successful in 15m4s
Build & Deploy / 🚀 Deploy (push) Successful in 28s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 17s
Build & Deploy / 🔔 Notify (push) Successful in 3s
fix(web): add missing sentry instrumentation dependencies for standalone build
2026-03-01 13:05:06 +01:00

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;