refactor(sitemap): enforce dynamic rendering for sitemap routes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user