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

Function getServiceRoutePrefixes

packages/cli/src/util/dev/services-orchestrator.ts:157–168  ·  view source on GitHub ↗
(service: ExperimentalService)

Source from the content-addressed store, hash-verified

155}
156
157function getServiceRoutePrefixes(service: ExperimentalService): string[] {
158 if (isQueueTriggeredService(service) || isWorkflowTriggeredService(service)) {
159 return [getInternalServiceWorkerPathPrefix(service.name)];
160 }
161 if (isScheduleTriggeredService(service)) {
162 return [getInternalServiceCronPathPrefix(service.name)];
163 }
164 if (service.type === 'web') {
165 return [service.routePrefix || '/'];
166 }
167 return [];
168}
169
170interface ServiceStartSpec {
171 rootPath: string;

Callers 1

getV1StartSpecMethod · 0.85

Tested by

no test coverage detected