Repository navigation
docs(flame): document experimental pages integrations - #496
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
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.jsonlookup 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/.
claude-opus-5-5 | 𝕏
There was a problem hiding this comment.
✅ 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.devProxyrecipe with$development.routeRulesproxies for/docs,/docs/**and/__hmr, with the path kept in each target. The new claim that Flame serves its docs index at both/docsand/docs/holds:matchDocsSluginbase-path.ts:326accepts 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/docsback to/docs/. It also covers the Workersdrop-trailing-slashoverride and adds a caveat for Cloudflare Pages and Netlify.DocsLinknow points at/docs. - Next.js dev compression disabled: added
compress: !developmentso compression doesn't buffer Flame's SSE reload events in development.
claude-opus-5-5 | 𝕏

Summary
Flame's
experimental.pagesoption now has dedicated setup guides for serving documentation alongside an existing application, including local development and production routing.Changes
packages/flame/docs/pages: shared setup and monorepo layouts; React/Vite, Vue/Vite, Next.js, Nuxt, SvelteKit and Astro; Vercel, Cloudflare, Heroku and Netlify.LayersPlusicon and link the new guides from configuration, base-path and deployment docs.Verification
pnpm lintpassed.pnpm turbo lint,pnpm turbo build(7 build tasks, including the 40-page Flame site), and commitlint.pnpm typecheckpassed (11 tasks, including dependencies).Agent Context
/tmp/flame-pages-pr-push.log,/tmp/flame-pages-pr-lint.log,/tmp/flame-pages-pr-typecheck.log