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

Function isEdgeRuntime

packages/node/src/utils.ts:172–177  ·  view source on GitHub ↗
(runtime?: string)

Source from the content-addressed store, hash-verified

170}
171
172export function isEdgeRuntime(runtime?: string): runtime is EdgeRuntimes {
173 return (
174 runtime !== undefined &&
175 Object.values(EdgeRuntimes).includes(runtime as EdgeRuntimes)
176 );
177}
178
179const ALLOWED_RUNTIMES: string[] = [...Object.values(EdgeRuntimes), 'nodejs'];
180

Callers 1

buildFunction · 0.90

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected