Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/remix-run/react-router
/ requireEnv
Function
requireEnv
scripts/pr.ts:259–266 ·
view source on GitHub ↗
(name: string)
Source
from the content-addressed store, hash-verified
257
}
258
259
function
requireEnv(name: string): string {
260
let
value = process.env[name];
261
if
(!value) {
262
console.error(`Missing required env
var
: ${name}`);
263
process.exit(1);
264
}
265
return
value;
266
}
Callers
1
runChecks
Function · 0.85
Calls
2
error
Method · 0.80
exit
Method · 0.45
Tested by
no test coverage detected