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

Function assertEnv

packages/rust/src/lib/utils.ts:11–16  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

9}
10
11export function assertEnv(name: string): string {
12 if (!process.env[name]) {
13 throw new Error(`Missing ENV variable process.env.${name}`);
14 }
15 return process.env[name] as unknown as string;
16}
17
18export async function runUserScripts(dir: string): Promise<void> {
19 const buildScriptPath = path.join(dir, 'build.sh');

Callers 2

buildHandlerFunction · 0.90
buildExecutableForDevFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected