mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-18 18:41:51 +02:00
Fix middleware (#291)
This commit is contained in:
parent
acb1e972ac
commit
c51514d36b
1 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,11 @@ export function middleware({ headers, cookies, nextUrl }: NextRequest) {
|
|||
}
|
||||
}
|
||||
|
||||
return NextResponse.next();
|
||||
// TODO (Luke Vella) [2022-08-18]: There seems to be a bug on vercel that
|
||||
// results in the component being remounted when doing NextResponse.next() rather
|
||||
// than loading the correct component.
|
||||
// return NextResponse.next();
|
||||
return NextResponse.rewrite(newUrl);
|
||||
}
|
||||
|
||||
export const config = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue