t161+t162(Arcrun@9f777ff):/health 吐 bundle_version(解假警報迴圈)+portal session 過期說原因

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-31 15:35:15 +08:00
parent 0a043701d0
commit ba291f83d4
3 changed files with 10 additions and 8 deletions
+6 -4
View File
@@ -9876,10 +9876,12 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
init_performance2();
init_dist();
var healthRouter = new Hono2();
healthRouter.get(
"/health",
(c) => c.json({ ok: true })
);
healthRouter.get("/health", (c) => {
const bundleVersion = c.env.ARCRUN_BUNDLE_VERSION;
return c.json(
bundleVersion ? { ok: true, bundle_version: bundleVersion } : { ok: true }
);
});
healthRouter.get(
"/",
(c) => c.json({