Skip to content

ND1: the docs on Workers - #2

Merged
pullely merged 1 commit into
mainfrom
orun/ND-2-the-docs-on-workers
Oct 14, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/ND-2-the-docs-on-workers

Conversation

@pullely

@pullely pullely commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

ND1 — the docs on Workers. apps/web is Vercel's Nextra Docs Starter Kit content on Nextra 4 with the Workers build around it: next build (standalone output, traced from the monorepo root), pagefind --site .next/server/app --output-path public/_pagefind, opennextjs-cloudflare build, then populateCache local so the pre-rendered pages land in the static-assets bundle and are served by the read-only static-assets incremental cache, with the Pagefind index beside them as static assets. Next is pinned to 16.3.8, the newest the adapter's peer range covers. tests/web pins the content directory (the five upstream pages, their text) and _meta (sidebar order, navbar pages, the external Contact link) with vitest.

Verified locally: typecheck, lint, test (5 tests) and build green; wrangler dev over .open-next/worker.js answers / (200, <title>Introduction – Nextra</title>, the My Project logo, the Introduction text, the Nextra Docs Template footer, the navbar with About / Contact ↗ / GitHub / Discord), /about, /another (both counters and the demo.js code block), /advanced (the folder's own page) and /advanced/satori (200), /nope (404) and /_pagefind/pagefind-entry.json (200, 5 pages indexed). The departures from upstream are the Nextra 2 → 4 move, recorded file by file in design.md §3 and IMPLEMENTATION-STATUS.md: content/ + app/[[...mdxPath]] (dynamicParams = false), theme.config.tsx → Layout/Navbar/Footer props, _meta.json → _meta.ts (newWindow dropped; Nextra 4 opens external hrefs in a new tab anyway), asIndexPage: true on advanced.mdx, the inline useState counter as a client component and 'use client' on counters.tsx, and a pnpm override pinning zod to ~4.3.6 for the two Nextra packages (zod 4.4+ rejects the theme's Layout props at prerender).

🤖 Generated with Claude Code

apps/web is Vercel's Nextra Docs Starter Kit content on Nextra 4 with the
Workers build around it: next build (standalone, traced from the monorepo
root), pagefind over .next/server/app into public/_pagefind, opennextjs-cloudflare
build, and populateCache into the static-assets bundle so the pre-rendered
pages are served by the read-only static-assets incremental cache and the
search index ships as static assets. Next is pinned to 16.3.8 (the newest the
adapter's peer range covers). tests/web pins the content directory and _meta
to the upstream layout with vitest.

The upstream is Nextra 2 on Next 13's pages router, which the adapter cannot
build; every departure of the Nextra 2→4 move is recorded in the epic: the
content moves to content/ behind app/[[...mdxPath]] (dynamicParams = false),
theme.config.tsx becomes Layout/Navbar/Footer props, _meta.json becomes
_meta.ts (newWindow dropped), advanced.mdx gains asIndexPage, the inline
useState counter becomes a client component and counters.tsx gains 'use
client', and zod is pinned to ~4.3.6 for the Nextra packages (4.4+ rejects
the theme's Layout props at prerender).

Orun-Task: ND-2
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pullely
pullely merged commit 0232e20 into main Oct 14, 2026
3 checks passed
@pullely
pullely deleted the orun/ND-2-the-docs-on-workers branch October 14, 2026 20:07
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