Repository navigation
docs(js): Add Express to the Cloudflare quick start - #20929
Merged
Merged
Conversation
The Cloudflare quick start gets Express in its framework selector. With Express selected, it shows the `httpServerHandler` Worker entry and the Express verify snippet, as the Bun and Deno quick starts do. The Express guide links Cloudflare Workers next to Node.js, Bun and Deno. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
JPeer264
marked this pull request as ready for review
November 23, 2026 10:20
Contributor
|
Getting ready to monitor this change · Rollout details
|
andreiborza
approved these changes
Nov 23, 2026
| @@ -0,0 +1,24 @@ | |||
| Your Express app runs on Workers with `httpServerHandler` from `cloudflare:node`, as in [Cloudflare's Express guide](https://developers.cloudflare.com/workers/tutorials/deploy-an-express-app/). You don't change your Worker entry: the plugin wraps its `httpServerHandler` export and instruments Express. Each request is named after its route, for example `GET /users/:id`, and errors from your routes and middleware are captured. | |||
Member
There was a problem hiding this comment.
Suggested change
| Your Express app runs on Workers with `httpServerHandler` from `cloudflare:node`, as in [Cloudflare's Express guide](https://developers.cloudflare.com/workers/tutorials/deploy-an-express-app/). You don't change your Worker entry: the plugin wraps its `httpServerHandler` export and instruments Express. Each request is named after its route, for example `GET /users/:id`, and errors from your routes and middleware are captured. | |
| Your Express app runs on Workers with `httpServerHandler` from `cloudflare:node`, as in [Cloudflare's Express guide](https://developers.cloudflare.com/workers/tutorials/deploy-an-express-app/). You don't need to change your Worker entry: the plugin wraps its `httpServerHandler` export and instruments Express. Each request is named after its route, for example `GET /users/:id`, and errors from your routes and middleware are captured. |
missing words?
Member
Author
There was a problem hiding this comment.
I think both works but yours is better.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
Tell us what you're changing and why. If your PR resolves an issue, please link it so it closes automatically.
follow up to getsentry/sentry-javascript#24845
This adds Express to the framework selector of the Cloudflare quick start. With Express selected, the page shows the
httpServerHandlerWorker entry and the Express verify snippet, as the Bun and Deno quick starts do. The Express guide now links Cloudflare Workers next to Node.js, Bun and Deno.Why
Since
@sentry/cloudflare11.15.0, the Vite plugin names Express requests after their route and captures route errors on Workers (getsentry/sentry-javascript#26559, getsentry/sentry-javascript#26560). With getsentry/sentry-javascript#26729, routes of mounted routers also keep their mount path withrouter2.3.0. The docs had no Express setup for Cloudflare.Known issues
app.use("/orgs/:orgId", router)) gives onlyGETwith Express 4, and with Express 5 onrouterolder than 2.3.0. The Express block shows this as a warning.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace
YYYY-MM-DDwith the due date. You can update this information later by editing the PR description.SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
EXTRA RESOURCES