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 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 20:25:46 +02:00
parent a494c80a76
commit 7fb54683e4
+3
View File
@@ -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'