Skip to content

SW1: the storefront on Workers - #2

Merged
pullely merged 1 commit into
mainfrom
orun/SW-2-the-storefront-on-workers
Oct 28, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/SW-2-the-storefront-on-workers

Conversation

@pullely

@pullely pullely commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

shopwareLabs/nextjs-shopware-starter (7066aa7, MIT in license.md) in apps/web, built by @opennextjs/cloudflare 1.20.11 into one Worker with Static Assets: the R2 incremental cache (infra/terraform/cloudflare-r2), the sharded Durable Object tag cache and the Durable Object revalidation queue, as the commerce baseline has them. Cache Components are off and experimental.useCache keeps every "use cache" read with its cacheLife("hours") and its collections/products tag — a Cache Components page answers 500 then hangs on workerd (opennextjs-cloudflare#1450); Next is 16.3.8, the lowest 16.x the adapter accepts. next.config.ts env inlines the store's domain, access key, API type, SEO-URL switch, origin and company name at build. With no domain or key (lib/shopware/connection.ts) the Store API client refuses to be made, every reader answers empty, every page carries the connect note and / says "Connect your Shopware store"; the two are optional build secrets. /api/revalidate is a bearer-checked route (SHOPWARE_REVALIDATION_SECRET, a Worker secret the deploy sets after the build, never inlined) revalidating products and/or collections. SITE_NAME (app/site.ts) is the one store-name seam; the Open Graph images draw on workerd; /api/health. Upstream's check (oxlint, oxfmt) is the app's test, and its Playwright suite is carried in apps/web/e2e-tests. typecheck, lint, test (upstream's check and tests/web's 17) and build are green; the Worker is 2.48 MiB gzipped (Workers Free).

🤖 Generated with Claude Code

shopwareLabs/nextjs-shopware-starter (7066aa7, MIT in license.md) in apps/web, built by @opennextjs/cloudflare 1.20.11 into one Worker with Static Assets: the R2 incremental cache (infra/terraform/cloudflare-r2), the sharded Durable Object tag cache and the Durable Object revalidation queue, as the commerce baseline has them. Cache Components are off and experimental.useCache keeps every "use cache" read with its cacheLife("hours") and its collections/products tag — a Cache Components page answers 500 then hangs on workerd (opennextjs-cloudflare#1450); Next is 16.3.8, the lowest 16.x the adapter accepts. next.config.ts env inlines the store's domain, access key, API type, SEO-URL switch, origin and company name at build. With no domain or key (lib/shopware/connection.ts) the Store API client refuses to be made, every reader answers empty, every page carries the connect note and / says "Connect your Shopware store"; the two are optional build secrets. /api/revalidate is a bearer-checked route (SHOPWARE_REVALIDATION_SECRET, a Worker secret the deploy sets after the build, never inlined) revalidating products and/or collections. SITE_NAME (app/site.ts) is the one store-name seam; the Open Graph images draw on workerd; /api/health. Upstream's check (oxlint, oxfmt) is the app's test, and its Playwright suite is carried in apps/web/e2e-tests. typecheck, lint, test (upstream's check and tests/web's 17) and build are green; the Worker is 2.48 MiB gzipped (Workers Free).

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: SW-2
@pullely
pullely merged commit baff3af into main Oct 28, 2026
2 checks passed
@pullely
pullely deleted the orun/SW-2-the-storefront-on-workers branch October 28, 2026 20:22
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.

2 participants