MCPcopy
hub / github.com/vercel/next.js / stripInternalQueries

Function stripInternalQueries

packages/next/src/server/internal-utils.ts:7–11  ·  view source on GitHub ↗
(query: NextParsedUrlQuery)

Source from the content-addressed store, hash-verified

5const INTERNAL_QUERY_NAMES = [NEXT_RSC_UNION_QUERY] as const
6
7export function stripInternalQueries(query: NextParsedUrlQuery) {
8 for (const name of INTERNAL_QUERY_NAMES) {
9 delete query[name]
10 }
11}
12
13export function stripInternalSearchParams<T extends string | URL>(url: T): T {
14 const isStringUrl = typeof url === 'string'

Callers 2

renderToHTMLImplFunction · 0.90
renderToHTMLOrFlightImplFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…