Erste brauchbare Version

This commit is contained in:
timg
2026-08-31 19:55:41 +02:00
parent 080c4d0f39
commit 892a4d4747
35 changed files with 7103 additions and 219 deletions
+18
View File
@@ -0,0 +1,18 @@
import { NextResponse, type NextRequest } from 'next/server';
export async function proxy(request: NextRequest) {
const isPreview = request.nextUrl.searchParams.get('preview') !== null;
if (!isPreview)
return NextResponse.next();
// ?preview entfernen
const url = request.nextUrl.clone();
url.searchParams.delete('preview');
const response = NextResponse.redirect(url);
// Cookie hinzufügen
response.cookies.set('payload-preview', '1');
return response;
}