fix: handle cold dev startup and versioned dependency removal

This commit is contained in:
whyour committed 2026-11-21 13:33:39 +08:00
1 parent a65d56a980
commit 0841e4e134
6 files changed
+211 -17

No files matched your search

+8 -4
View File
@@ -42,11 +42,15 @@ class Application {
}
private startMasterProcess() {
// Source transpilation competes with the frontend's cold compilation in
// development. Keep a bounded wait without applying that budget to normal
// production startup.
const readyTimeout =
process.arch === 'arm' &&
Number(
(process.config.variables as { arm_version?: string | number }).arm_version,
) === 6
process.env.NODE_ENV === 'development' ||
(process.arch === 'arm' &&
Number(
(process.config.variables as { arm_version?: string | number }).arm_version,
) === 6)
? 120000
: 30000;
// Fork gRPC worker first and wait for it to be ready