Repository navigation
Port from Vercel to Cloudflare Workers - #31
Merged
Merged
Conversation
Use the OpenNext Cloudflare adapter, which requires Next 16.4.1+. Cache /api/merge with the Workers Cache API, since Cloudflare does not cache Worker responses at the edge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenNext added per-request CPU and stalled responses. The page is now static assets built by Vite, and src/worker.ts serves /api/merge. The Cache API has no stale-while-revalidate, so the Worker serves stale merged feeds and refreshes them in waitUntil. Each upstream feed is cached for 10 minutes, and a deadline now covers slow response bodies, which the abort signal does not stop in Workers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Vercel built and deployed each push. Now CI runs a typecheck and a build, and pushes to main deploy with wrangler. Remove the unused Next.js template SVGs, and add the og-image.png that index.html refers to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
@opennextjs/cloudflare). Removevercel.json.nextto^16.4.1. The adapter requires it./api/mergewith the Workers Cache API. Cloudflare does not cache Worker responses at the edge, so without this each feed-reader poll fetches all upstream feeds.preview,deploy, andcf-typegenscripts.Test plan
bun testpasses (19 tests).bun run preview:/,/sitemap.xml, and/api/merge(RSS and JSON) work. The second request returnsCF-Cache-Status: HIT.rssrssrssrss.comDNS to Cloudflare and attach the Worker custom domain.🤖 Generated with Claude Code