Repository navigation
SW1: the storefront on Workers - #2
Merged
Merged
Conversation
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
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.
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