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

Function isCompileAllEnabled

packages/python/src/compileall.ts:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 * is set truthy (`1`/`true`) — an opt-in toggle, no effect otherwise.
10 */
11export function isCompileAllEnabled(): boolean {
12 if (!isLargeFunctionsEnabled()) return false;
13
14 const val = process.env.VERCEL_PYTHON_COMPILEALL;
15 if (val === undefined || val === '') return false;
16
17 const lower = val.toLowerCase();
18 return lower === '1' || lower === 'true';
19}
20
21export function shouldUseCompileAll({
22 isDev,

Callers 2

compileall.test.tsFile · 0.90
shouldUseCompileAllFunction · 0.85

Calls 1

isLargeFunctionsEnabledFunction · 0.90

Tested by

no test coverage detected