Skip to content

Conversation

@adriandlam
Copy link
Member

@adriandlam adriandlam commented Nov 13, 2025

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 undefined unhandled rejection is thrown inside when resuming a webhook, coming from waitUntil

this PR adds an argument suppressUndefinedRejections to createWebhookBundle since this code was duplicated across individual builders

@vercel
Copy link
Contributor

vercel bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Comment Nov 13, 2025 6:19am
example-nextjs-workflow-webpack Ready Ready Preview Comment Nov 13, 2025 6:19am
example-workflow Ready Ready Preview Comment Nov 13, 2025 6:19am
workbench-hono-workflow Ready Ready Preview Comment Nov 13, 2025 6:19am
workbench-nitro-workflow Ready Ready Preview Comment Nov 13, 2025 6:19am
workbench-nuxt-workflow Ready Ready Preview Comment Nov 13, 2025 6:19am
workbench-sveltekit-workflow Ready Ready Preview Comment Nov 13, 2025 6:19am
workbench-vite-workflow Ready Ready Preview Comment Nov 13, 2025 6:19am
workflow-docs Ready Ready Preview Comment Nov 13, 2025 6:19am

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2025

⚠️ No Changeset found

Latest commit: c18cc2b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@adriandlam adriandlam merged commit 7ced2d6 into main Nov 13, 2025
35 checks passed
@adriandlam adriandlam deleted the refactor/undefined-unhandled-rejection branch November 13, 2025 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants