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

Function getFetchUrl

test/lib/next-test-utils.ts:184–191  ·  view source on GitHub ↗
(
  appPort: string | number,
  pathname: string,
  query?: Record<string, any> | string | null | undefined
)

Source from the content-addressed store, hash-verified

182}
183
184export function getFetchUrl(
185 appPort: string | number,
186 pathname: string,
187 query?: Record<string, any> | string | null | undefined
188) {
189 const url = query ? withQuery(pathname, query) : pathname
190 return getFullUrl(appPort, url)
191}
192
193export function fetchViaHTTP(
194 appPort: string | number,

Callers

nothing calls this directly

Calls 2

withQueryFunction · 0.85
getFullUrlFunction · 0.70

Tested by

no test coverage detected