Repository navigation
CM1: the storefront on Workers - #2
Merged
Merged
Conversation
apps/web is Vercel's Next.js Commerce with the Workers build around it: next build (standalone, traced from the monorepo root; experimental.useCache carries upstream's "use cache" directives), opennextjs-cloudflare build (the Worker exports the DOQueueHandler and DOShardedTagCache classes). open-next.config.ts names the R2 incremental cache, the Durable Object queue and the sharded Durable Object tag cache; wrangler.jsonc is rendered per environment from wrangler.template.jsonc — the bucket name from the cloudflare-r2 root's wiring document, the two Durable Object bindings with their migration, the Worker's self-reference, the non-secret vars — and is git-ignored; wiring.fixture.json feeds the verify lane. The Shopify facts are Worker secrets. tests/web exercises lib/utils, lib/type-guards, the Shopify client with a mocked fetch and the revalidation webhook (22 tests). Departures from upstream, recorded in the epic: experimental.useCache instead of experimental.ppr (Next 16 merges it into cacheComponents, whose staged render hangs on the adapter), stable cacheLife/cacheTag imports, baseUrl honouring SITE_URL, the next/og font read through ASSETS from public/fonts, moduleResolution bundler, React 19.2, an ESLint config. Orun-Task: CM-2 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Oct 14, 2026
Merged
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.
CM1 — the storefront on Workers.
apps/webis Vercel's Next.js Commerce with the Workers build around it:next build(standalone output, traced from the monorepo root;experimental.useCachecarries upstream's"use cache"/"use cache: private"/cacheTag/cacheLife/revalidateTag/updateTagsurface) thenopennextjs-cloudflare build, whose Worker exports the two cache Durable Objects.open-next.config.tsnames the R2 incremental cache, the Durable Object queue and the sharded Durable Object tag cache (baseShardSize: 12);wrangler.template.jsonccarries the bucket binding as a wiring token, the two Durable Object bindings with their migration, theWORKER_SELF_REFERENCEservice binding and the non-secret vars, and is rendered per environment to a git-ignoredwrangler.jsonc(wiring.fixture.jsonfeeds the verify lane andpnpm run wire:fixture). The three Shopify facts are Worker secrets (.dev.vars.example).tests/webexerciseslib/utils,lib/type-guards, the Shopify client's request shape and reshaping with a mockedfetch, and the webhook'srevalidate(22 tests).Verified locally: wire, typecheck, lint, test and build green;
wrangler devover the built Worker with an empty local bucket and no store:/200 ("Next.js Commerce", the un-configured storefront),/search200,/product/x404,/robots.txt200,/opengraph-image200 (a 1200×630 PNG), CSS and favicon 200,/sitemap.xmland/[page]500 (upstream's unguarded store reads);POST /api/revalidateanswers{"status":401}without the secret and, with dummy secrets in.dev.vars,{"status":200,"revalidated":true}for product and collection webhooks (tag cache Durable Object writes and R2 puts observed). Departures from upstream, recorded inIMPLEMENTATION-STATUS.mdin the closing PR:experimental.useCacheinstead ofexperimental.ppr(Next 16 merges it intocacheComponents, which hangs on the adapter — opennextjs-cloudflare#1450), stablecacheLife/cacheTagimports,baseUrlhonouring aSITE_URLvar, thenext/ogfont read throughASSETSfrompublic/fonts,moduleResolution: bundler, React 19.2, an ESLint config (upstream has none; its prettier check fails on its own HEAD and is not wired intotest).🤖 Generated with Claude Code