c6b69eb88dd0f3a28c47f437cd557bc326e4745c
Docker Compose passes undeclared variables as empty strings (CRON_SECRET="" etc.), which crashed env validation while loading the instrumentation hook. A throwing register() made Next.js answer every route with 500 while the process stayed alive. - parse optional CRON_SECRET / AUTO_RULE_SYNC_INTERVAL_SECONDS via plain preprocess helpers that map blank strings to unset (zod v4 does not accept preprocess-produced undefined through .optional()) - guard instrumentation register() so scheduler failures can never break request handling
Languages
TypeScript
98.4%
CSS
1.3%
Shell
0.2%
Dockerfile
0.1%