Skip to content

WP1: the site on Workers - #2

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

pullely merged 1 commit into
mainfrom
orun/WP-2-the-site-on-workers

Conversation

@pullely

@pullely pullely commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

9d8's next-wp in apps/web: Next.js 16.3.8, Tailwind CSS 4 and shadcn/ui, built by next build (Turbopack), then @opennextjs/cloudflare (standalone output, the static-assets incremental cache) into one Worker with Static Assets. Every page that reads WordPress — /posts with search, filters and pagination, a post, /pages, a page, the category, tag and author lists, the sitemap — is force-dynamic and its fetches no-store, so it reads the REST API on every request; /api/og runs on the Node.js runtime; /api/revalidate is kept and secret-checked, with no cache to clear. WORDPRESS_URL is inlined at build from an optional Orun secret; with none the client answers from lib/sample.ts — three posts, a page, their terms and an author in the REST API's shapes and filters — under a 'no WordPress site is connected' notice, so a fresh site deploys and passes its smoke. Images are unoptimised; @vercel/analytics is the Cloudflare Web Analytics beacon. The site's name is one seam (SITE_NAME in site.config.ts, the root title included); site_domain is NEXT_PUBLIC_SITE_URL, set per environment by the deploy. tests/web: the template's own tests unchanged, the sample mode, the no-store fetches, the name and the origin. typecheck, lint, test and build are green; wrangler dev serves every route, unconnected, and the webhook answers 401 without its secret.

🤖 Generated with Claude Code

9d8's next-wp in apps/web: Next.js 16.3.8, Tailwind CSS 4 and shadcn/ui, built by next build (Turbopack), then @opennextjs/cloudflare (standalone output, the static-assets incremental cache) into one Worker with Static Assets. Every page that reads WordPress — /posts with search, filters and pagination, a post, /pages, a page, the category, tag and author lists, the sitemap — is force-dynamic and its fetches no-store, so it reads the REST API on every request; /api/og runs on the Node.js runtime; /api/revalidate is kept and secret-checked, with no cache to clear. WORDPRESS_URL is inlined at build from an optional Orun secret; with none the client answers from lib/sample.ts — three posts, a page, their terms and an author in the REST API's shapes and filters — under a 'no WordPress site is connected' notice, so a fresh site deploys and passes its smoke. Images are unoptimised; @vercel/analytics is the Cloudflare Web Analytics beacon. The site's name is one seam (SITE_NAME in site.config.ts, the root title included); site_domain is NEXT_PUBLIC_SITE_URL, set per environment by the deploy. tests/web: the template's own tests unchanged, the sample mode, the no-store fetches, the name and the origin. typecheck, lint, test and build are green; wrangler dev serves every route, unconnected, and the webhook answers 401 without its secret.

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