feat: separate current and "new" web in route groups

This commit is contained in:
Christel Westerberg
2024-02-20 09:14:42 +01:00
parent 10b52112af
commit 4e4b6f1bd6
14 changed files with 268 additions and 66 deletions
+4 -1
View File
@@ -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
)
)
}