Skip to content

docs(flame): document experimental pages integrations - #496

Merged
gitfromwildan merged 2 commits into
mainfrom
docs/flame-experimental-pages
Nov 7, 2026
Merged

gitfromwildan merged 2 commits into
mainfrom
docs/flame-experimental-pages

Conversation

@gitfromwildan

Copy link
Copy Markdown
Member

Summary

Flame's experimental.pages option now has dedicated setup guides for serving documentation alongside an existing application, including local development and production routing.

Changes

  • Add 12 guides under packages/flame/docs/pages: shared setup and monorepo layouts; React/Vite, Vue/Vite, Next.js, Nuxt, SvelteKit and Astro; Vercel, Cloudflare, Heroku and Netlify.
  • Explain the feature's scope, manual integration requirements, static versus SSR deployment, docs-specific 404 handling, SSE reload proxy and configuration restarts.
  • Add a Pages sidebar section with the LayersPlus icon and link the new guides from configuration, base-path and deployment docs.

Verification

  • pnpm lint passed.
  • Pre-push hooks passed: pnpm turbo lint, pnpm turbo build (7 build tasks, including the 40-page Flame site), and commitlint.
  • pnpm typecheck passed (11 tasks, including dependencies).
  • Existing Flame suites passed: experimental pages (41 tests), routing and filesystem scanning (33 tests).
  • Checked all 12 new pages, 701 internal links/assets and fragments, 13 JSON examples and 10 JavaScript/TypeScript examples; checked Worker fallback and SPA routing boundaries.
  • Browser checks passed for overview → React → Cloudflare navigation, nested-page reload and sidebar visibility, with no page errors.
  • Framework/provider recipes have not all been tested through real deployments.

Agent Context

  • owner/repo: DocuBook/docubook
  • source: user-request | branch: docs/flame-experimental-pages | base: main
  • created-by: Codex (/root)
  • commit: 561bdee
  • evidence-ref: local verification output; /tmp/flame-pages-pr-push.log, /tmp/flame-pages-pr-lint.log, /tmp/flame-pages-pr-typecheck.log

@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Preview Nov 7, 2026 6:29am UTC

@gitfromwildan gitfromwildan self-assigned this Nov 7, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The Nuxt dev-proxy recipe won't work as written: Nitro strips the matched prefix before forwarding, so the docs land on the wrong upstream path and /docs ends in a redirect loop. There's also one smaller trailing-slash interaction in the Next.js SSR recipe.

Reviewed changes

Mode: standard (docs-only, no runtime code). I reviewed all 12 new experimental.pages guides, the new sidebar group and the three cross-links. I checked the guides' factual claims against Flame's source, and they hold: <basePath>/_flame for bundles and the search index (experimental.ts OWN_PAGES_BUNDLE_DIR), /__hmr as SSE, PORT for the dev port, / redirecting to the prefix under the flag, the 6-level docu.json walk-up (paths.ts:55), the home warning, the docs/assets copy, FLAME_STANDALONE, and the LayersPlus export in lucide-react 1.52. No changeset is needed because the package docs site isn't published content.

  • Bring Your Own Pages overview: covers scope, shared docu.json/scripts setup, output layout, dev/HMR/config-restart notes, and a verification and troubleshooting matrix.
  • Framework guides: dev proxies, full-document links and static-merge/SSR-proxy builds for React, Vue, Next.js, Nuxt, SvelteKit and Astro.
  • Deployment guides: Vercel (rewrites, separate docs project), Cloudflare (Pages, Workers assets, SPA-fallback Worker), Heroku (Express server) and Netlify (404 rules, proxy).
  • Monorepo guide: covers single-project and workspace layouts, copy paths and how the docu.json lookup works.
  • docu.json: adds a new "Pages" context group with 12 entries.

Overall: READY WITH MINOR FIXES. Priorities: (1) fix the Nuxt devProxy targets, (2) note the Next.js trailing-slash interaction for upstreams that redirect /docs to /docs/.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. Both findings from the previous review are fixed.

Reviewed changes

Mode: standard (docs only). This review covers c4120c4, the commit added since the last review (561bdee). Verdict: READY.

  • Nuxt dev proxy rewritten: replaced the prefix-stripping nitro.devProxy recipe with $development.routeRules proxies for /docs, /docs/** and /__hmr, with the path kept in each target. The new claim that Flame serves its docs index at both /docs and /docs/ holds: matchDocsSlug in base-path.ts:326 accepts both forms.
  • Next.js slash policy documented: added a section explaining that with Next.js's default trailingSlash: false, the docs origin must not redirect /docs back to /docs/. It also covers the Workers drop-trailing-slash override and adds a caveat for Cloudflare Pages and Netlify. DocsLink now points at /docs.
  • Next.js dev compression disabled: added compress: !development so compression doesn't buffer Flame's SSE reload events in development.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit 28ef0ba into main Nov 7, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the docs/flame-experimental-pages branch November 7, 2026 06:35
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.

1 participant