From f42e8664b3571b24afeaf083ff07b73402187691 Mon Sep 17 00:00:00 2001 From: Maximilian Kaske <56969857+mxkaske@users.noreply.github.com> Date: Tue, 21 Apr 2026 18:04:13 +0200 Subject: [PATCH] fix: force-dynamic sitemap to unblock docker build (#2098) Prevents Next.js from prerendering /sitemap.xml at build time, which fails in Docker because the libsql hostname only resolves at runtime. Co-authored-by: Claude Opus 4.7 (1M context) --- apps/status-page/src/app/sitemap.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/status-page/src/app/sitemap.ts b/apps/status-page/src/app/sitemap.ts index 93b4652f1..57e967552 100644 --- a/apps/status-page/src/app/sitemap.ts +++ b/apps/status-page/src/app/sitemap.ts @@ -2,6 +2,8 @@ import { db, eq } from "@openstatus/db"; import { page } from "@openstatus/db/src/schema"; import type { MetadataRoute } from "next"; +export const dynamic = "force-dynamic"; + export default async function sitemap(): Promise { const pages = await db .select({ -- knotmirror 0.0.1