chore(observability): port Sentry and memory optimizations from klz-2026
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 56s
Build & Deploy / 🧪 QA (push) Successful in 2m9s
CI - Lint, Typecheck & Test / quality-assurance (pull_request) Failing after 3m30s
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 🏗️ Build (push) Has been cancelled

This commit is contained in:
2026-05-13 13:21:07 +02:00
parent 351c27f7d4
commit 66f28d8af2
6 changed files with 66 additions and 7 deletions

View File

@@ -9,8 +9,8 @@ const isProd = process.env.NODE_ENV === 'production';
const nextConfig = {
transpilePackages: ['react-image-crop', '@react-three/fiber'],
onDemandEntries: {
// Keep compiled pages/routes in memory for 5 minutes (reduced from 25m to prevent OOM)
maxInactiveAge: 5 * 60 * 1000,
// Keep compiled pages/routes in memory for 1 minute (optimized for memory usage)
maxInactiveAge: 60 * 1000,
// Keep up to 2 pages in the dev buffer (reduced from 10 to prevent OOM)
pagesBufferLength: 2,
},
@@ -507,6 +507,10 @@ const nextConfig = {
source: '/en/agbs',
destination: '/en/terms',
},
{
source: '/errors/:path*',
destination: `${glitchtipDomain}/:path*`,
},
],
afterFiles: [],
fallback: [],