Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
export
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
initSentry
Function · 0.90
errorHandler
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected