fix: cap Prisma pool during next build to stop deploy SSG timeouts
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m28s

Next build workers were each opening up to DATABASE_POOL_SIZE connections and exhausting MySQL (pool active=0), hanging sitemap generation. Cap build pool to 5, fail connect faster, limit SSG concurrency, and make sitemap dynamic.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-21 21:28:27 +02:00
1 parent 803e8f36c1
commit 77931db775
5 files changed
+53 -3

No files matched your search

+2
View File
@@ -44,6 +44,8 @@ const nextConfig: NextConfig = {
static: 180,
},
optimizePackageImports: ["lucide-react"],
// Keep build-time DB fan-out low (shared MySQL with emulator).
staticGenerationMaxConcurrency: 3,
},
// Add caching headers for static assets