diff --git a/src/middleware.ts b/src/middleware.ts new file mode 100644 index 00000000..b6852a6e --- /dev/null +++ b/src/middleware.ts @@ -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)); +}