тут нихуя не работает, ебаный рот этого казино

This commit is contained in:
User
2025-01-08 15:14:15 +03:00
parent 847102e843
commit 8c4c3f2e38
56 changed files with 1448 additions and 267 deletions

View File

@@ -0,0 +1,12 @@
import { NextRequest, NextResponse } from 'next/server'
import { draftMode } from 'next/headers'
export async function GET(request: NextRequest) {
const { searchParams } = new URL(request.url)
const id = searchParams.get('id')
draftMode().disable()
return NextResponse.redirect(new URL(`/product/${id}`, request.url))
}