-
Notifications
You must be signed in to change notification settings - Fork 130
refactor(builder): add suppressUndefinedRejections #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
currently we manually inject
process.on("unhandledRejection", (reason) => { if (reason !== undefined) console.error("Unhandled rejection detected", reason); });when creating the webhook bundles/routes (ex. sveltekit, nitro in #283).this hack is because an
undefinedunhandled rejection is thrown inside when resuming a webhook, coming fromwaitUntilthis PR adds an argument
suppressUndefinedRejectionstocreateWebhookBundlesince this code was duplicated across individual builders