You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the Fumadocs site exportable to static HTML and publish it to GitHub Pages
so the docs have a real public URL (https://new1direction.github.io/repolens/).
- next.config.mjs: `output: 'export'` + `images.unoptimized` + basePath from
NEXT_PUBLIC_BASE_PATH (/repolens on Pages; empty locally).
- app/api/search/route.ts: switch to `staticGET` so search exports as a static
index (a dynamic server route can't be statically exported).
- app/layout.tsx: configure the client for static search, pointing at
<basePath>/api/search.
- .github/workflows/deploy-pages.yml: build the export and deploy via
actions/deploy-pages on push to main (website/** changes).
Verified locally: `next build` exports out/docs/how-it-works.html (84KB) + the
static out/api/search index; simulated Pages serving under /repolens/ returns 200
for the page, the search index, and all _next assets (every asset ref is prefixed
/repolens/, 0 bare refs).
0 commit comments