feat(app): expose boot() so providers can fail before serving

Only listen() booted before accepting traffic. Deno, Bun and edge all boot on the
first request, and the memo keeps the rejection, so a bad key answered 500 for the
life of the process while the app looked healthy.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-16 22:26:28 -05:00
1 parent 80f3f532f2
commit 3fc761ce16
3 files changed
+75

No files matched your search

+1
View File
@@ -392,6 +392,7 @@ export function createApp(opts: {
close,
handleSignals,
ready,
boot: bootApp,
fetch: fetchFn,
upgrade: upgradeFn,
inspect,