From 7bb293b6de9c9be4faf9ba80f0cf1ecccf68a14d Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Tue, 16 Dec 2025 12:38:42 +1000 Subject: [PATCH] fix: make sitemap dynamic to avoid DB calls during CI build --- apps/web/src/app/sitemap.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.ts index a17ccf2..13500fb 100644 --- a/apps/web/src/app/sitemap.ts +++ b/apps/web/src/app/sitemap.ts @@ -1,6 +1,9 @@ import { prisma } from '@tpmjs/db'; import type { MetadataRoute } from 'next'; +// Force dynamic rendering to avoid database calls during build +export const dynamic = 'force-dynamic'; + /** * Dynamic sitemap that includes all pages and tools from the database * Automatically generated by Next.js at /sitemap.xml