diff --git a/app/api/sitemap/route.tsx b/app/api/sitemap/route.tsx index 8e929cd..82cfb9a 100644 --- a/app/api/sitemap/route.tsx +++ b/app/api/sitemap/route.tsx @@ -9,6 +9,7 @@ interface ProjectsData { posts: Project[]; } +export const dynamic = 'force-dynamic'; export const runtime = "nodejs"; // Force Node runtime const GHOST_API_URL = "http://192.168.179.31:2368"; diff --git a/app/sitemap.xml/route.tsx b/app/sitemap.xml/route.tsx index b69b080..a1fd016 100644 --- a/app/sitemap.xml/route.tsx +++ b/app/sitemap.xml/route.tsx @@ -1,5 +1,7 @@ import {NextResponse} from "next/server"; +export const dynamic = 'force-dynamic'; + export async function GET() { const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "https://dki.one"; // Stelle sicher, dass die Base-URL korrekt ist const apiUrl = `${baseUrl}/api/sitemap`; // Verwende die vollständige URL zur API