MCPcopy Create free account
hub / github.com/vercel/vercel / formatRoutePrefix

Function formatRoutePrefix

packages/cli/src/util/input/display-services.ts:62–71  ·  view source on GitHub ↗
(routePrefix: string)

Source from the content-addressed store, hash-verified

60}
61
62function formatRoutePrefix(routePrefix: string): string {
63 if (routePrefix === '/') {
64 return '/';
65 }
66 // Ensure it starts with / and ends with /*
67 const normalized = routePrefix.startsWith('/')
68 ? routePrefix
69 : `/${routePrefix}`;
70 return `${normalized}/*`;
71}
72
73interface ServiceDescriptionInfo {
74 label: string;

Callers 1

getServiceTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected