Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 11, 2024
1 parent b3de500 commit 8f94145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/docs-bundle/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export async function middleware(request: NextRequest): Promise<NextResponse> {
const destination = new URL(urlJoin(prefix, xFernHost, removeIndex(pathname)), request.url);

/**
* Add __nextDataReq=1 query param to the destination URL if the request is for a nextjs data request
* Add __nextDataReq=1 query param to the destination URL if the request is for a nextjs data request.
*/
if (request.nextUrl.pathname.includes("/_next/data/")) {
destination.searchParams.set("__nextDataReq", "1");
Expand Down

0 comments on commit 8f94145

Please sign in to comment.