Files
Max LeiterandGitHub 4c3b7f9b7a Export RedirectType from next/navigation (#54729)
A continuation of #51864 with RedirectType used in an e2e test and some
ts-ignores removed from the codebase. Happy to split it into two PRs but
I left comments in the two consequential files

---------
2023-08-29 11:05:44 -07:00

8 lines
285 B
JavaScript

import { strict as assert } from 'node:assert'
import { NEXT_RSC_UNION_QUERY } from 'next/dist/client/components/app-router-headers'
export function GET(request) {
assert(request.nextUrl.searchParams.get(NEXT_RSC_UNION_QUERY) === null)
return new Response('no rsc query route')
}