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

Function isExternalDestination

packages/next-routing/src/destination.ts:43–45  ·  view source on GitHub ↗
(destination: string)

Source from the content-addressed store, hash-verified

41 * Checks if a destination is an external rewrite (starts with http/https)
42 */
43export function isExternalDestination(destination: string): boolean {
44 return destination.startsWith('http://') || destination.startsWith('https://')
45}
46
47/**
48 * Applies a destination to a URL, updating the pathname or creating a new URL

Callers 3

processRoutesFunction · 0.90
resolveRoutesFunction · 0.90
applyDestinationFunction · 0.85

Calls 1

startsWithMethod · 0.80

Tested by

no test coverage detected