From 7fb54683e47cf2332bf13609d50b549316581b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 15 Jun 2026 20:25:46 +0200 Subject: [PATCH] fix: mark sitemap as dynamic to avoid DB query at build time The sitemap queries the database, which is only reachable at runtime (not during next build where the 'db' hostname is unavailable). Co-Authored-By: Claude Sonnet 4.6 --- app/sitemap.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/sitemap.ts b/app/sitemap.ts index 095bd3b..28bba00 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -1,4 +1,7 @@ import type { MetadataRoute } from 'next' + +export const dynamic = 'force-dynamic' + import { db } from '@/lib/db' import { tournaments, teams, goals } from '@/lib/db/schema' import { asc } from 'drizzle-orm'