Repository navigation
ND1: the docs on Workers - #2
Merged
Merged
Conversation
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>
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.
ND1 — the docs on Workers.
apps/webis 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, thenpopulateCache localso 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/webpins 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 devover.open-next/worker.jsanswers/(200,<title>Introduction – Nextra</title>, theMy Projectlogo, the Introduction text, theNextra Docs Templatefooter, the navbar with About / Contact ↗ / GitHub / Discord),/about,/another(both counters and thedemo.jscode 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 indesign.md§3 andIMPLEMENTATION-STATUS.md:content/+app/[[...mdxPath]](dynamicParams = false),theme.config.tsx→Layout/Navbar/Footerprops,_meta.json→_meta.ts(newWindowdropped; Nextra 4 opens external hrefs in a new tab anyway),asIndexPage: trueonadvanced.mdx, the inlineuseStatecounter as a client component and'use client'oncounters.tsx, and a pnpm override pinning zod to~4.3.6for the two Nextra packages (zod 4.4+ rejects the theme'sLayoutprops at prerender).🤖 Generated with Claude Code