Skip to content

Commit

Permalink
Try to see if this fixes the various pre-loading issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
oBusk committed Nov 8, 2022
1 parent 2882fc2 commit 3ab0c6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/middleware.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";

export function middleware(request: NextRequest) {
// Temporary workaround to make navigation between app/pages work
// https://github.com/vercel/next.js/issues/42364#issuecomment-1300836034
return NextResponse.rewrite(new URL(request.nextUrl.pathname, request.url));
}

0 comments on commit 3ab0c6a

Please sign in to comment.