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

Function buildCronRouteTable

packages/python/src/crons.ts:41–49  ·  view source on GitHub ↗
(
  crons: ServiceCronEntry[]
)

Source from the content-addressed store, hash-verified

39 * Build a JSON route table mapping cron paths to handler specifiers.
40 */
41export function buildCronRouteTable(
42 crons: ServiceCronEntry[]
43): Record<string, string> {
44 const table: Record<string, string> = {};
45 for (const cron of crons) {
46 table[cron.path] = cron.resolvedHandler;
47 }
48 return table;
49}
50
51/**
52 * Compute cron entries for a cron service build. Shared between build()

Callers 2

buildFunction · 0.90
startDevServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected