fix preview route types

This commit is contained in:
Jacob Fletcher
2025-08-21 10:49:10 -04:00
parent 5c2e20f5fb
commit 9d8741ddfc
7 changed files with 545 additions and 134 deletions

View File

@@ -116,15 +116,7 @@ import { redirect } from 'next/navigation'
import configPromise from '@payload-config'
export async function GET(
req: {
cookies: {
get: (name: string) => {
value: string
}
}
} & Request,
): Promise<Response> {
export async function GET(req: Request): Promise<Response> {
const payload = await getPayload({ config: configPromise })
const { searchParams } = new URL(req.url)