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

Function getURL

packages/next/src/shared/lib/utils.ts:331–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329}
330
331export function getURL() {
332 const { href } = window.location
333 const origin = getLocationOrigin()
334 return href.substring(origin.length)
335}
336
337export function getDisplayName<P>(Component: ComponentType<P>) {
338 return typeof Component === 'string'

Callers 4

initializeFunction · 0.90
constructorMethod · 0.90
RouterClass · 0.90
changeStateMethod · 0.90

Calls 1

getLocationOriginFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…