fix(web): add missing sentry instrumentation dependencies for standalone build
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

This commit is contained in:
2026-03-01 13:05:06 +01:00
parent af5f91e6f8
commit cf3a96cead
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
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;

View File

@@ -16,7 +16,9 @@ const nextConfig = {
'@mintel/pdf', '@mintel/pdf',
'canvas', 'canvas',
'sharp', 'sharp',
'puppeteer' // Explicitly externalizing heavy node-native dependencies 'puppeteer',
'require-in-the-middle',
'import-in-the-middle' // Sentry 10+ instrumentation dependencies
], ],
images: { images: {
remotePatterns: [ remotePatterns: [

View File

@@ -75,6 +75,7 @@
"framer-motion": "^12.29.2", "framer-motion": "^12.29.2",
"graphql": "^16.12.0", "graphql": "^16.12.0",
"html-to-image": "^1.11.13", "html-to-image": "^1.11.13",
"import-in-the-middle": "^1.11.0",
"ioredis": "^5.9.1", "ioredis": "^5.9.1",
"lucide-react": "^0.468.0", "lucide-react": "^0.468.0",
"mermaid": "^11.12.2", "mermaid": "^11.12.2",
@@ -92,6 +93,7 @@
"react-tweet": "^3.3.0", "react-tweet": "^3.3.0",
"recharts": "^3.7.0", "recharts": "^3.7.0",
"remotion": "^4.0.414", "remotion": "^4.0.414",
"require-in-the-middle": "^8.0.1",
"sharp": "^0.34.5", "sharp": "^0.34.5",
"shiki": "^1.24.2", "shiki": "^1.24.2",
"tailwind-merge": "^3.4.0", "tailwind-merge": "^3.4.0",