()
| 9 | * is set truthy (`1`/`true`) — an opt-in toggle, no effect otherwise. |
| 10 | */ |
| 11 | export 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 | |
| 21 | export function shouldUseCompileAll({ |
| 22 | isDev, |
no test coverage detected