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

Function assertEnv

api/_lib/util/assert-env.ts:1–9  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1export function assertEnv(name: string) {
2 const value = process.env[name];
3
4 if (!value) {
5 throw new Error(`Missing env "${name}"`);
6 }
7
8 return value;
9}

Callers 2

initSentryFunction · 0.90
errorHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected