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:
3 files changed
+75
No files matched your search
@@ -392,6 +392,7 @@ export function createApp(opts: {
|
||||
close,
|
||||
handleSignals,
|
||||
ready,
|
||||
boot: bootApp,
|
||||
fetch: fetchFn,
|
||||
upgrade: upgradeFn,
|
||||
inspect,
|
||||
|
||||
Reference in new issue
Block a user