feat: separate current and "new" web in route groups
This commit is contained in:
+4
-1
@@ -39,7 +39,10 @@ export async function middleware(request: NextRequest) {
|
||||
searchParams.set("uri", pathNameWithoutLocale.replace("/preview", ""))
|
||||
|
||||
return NextResponse.rewrite(
|
||||
new URL(`/${locale}/preview?${searchParams.toString()}`, request.url)
|
||||
new URL(
|
||||
`/${locale}/preview-current?${searchParams.toString()}`,
|
||||
request.url
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user