continue-custom/docs-site
Nate Sesti 0e7f91ae15
docs: fix GitHub Pages subpath base path for docs site (#12638)
The docs site is served from the /continue/ subpath on GitHub Pages but
next.config.js set no basePath, so /_next CSS/JS, the search index, and
images were requested from the domain root and 404'd (unstyled site).

- Add basePath/assetPrefix of /continue, gated on GITHUB_ACTIONS so local
  dev still serves from root
- Expose NEXT_PUBLIC_BASE_PATH and add a withBasePath helper for raw
  absolute asset paths that Next doesn't prefix automatically
- Prefix the search-index fetch, logo, and MDX doc images
- Guard against double /images/docs/ rewrite in the MDX img component

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 12:54:57 -07:00
..
app docs: default to IDE Extensions section and add favicon (#12636) 2026-06-15 12:33:18 -07:00
components docs: fix GitHub Pages subpath base path for docs site (#12638) 2026-06-15 12:54:57 -07:00
config feat: add docs site as static Next.js export 2026-03-20 13:52:25 -07:00
lib docs: fix GitHub Pages subpath base path for docs site (#12638) 2026-06-15 12:54:57 -07:00
public/images feat: add docs site as static Next.js export 2026-03-20 13:52:25 -07:00
scripts fix: iteratively strip HTML tags in search index builder 2026-03-20 14:21:08 -07:00
.gitignore feat: add docs site as static Next.js export 2026-03-20 13:52:25 -07:00
next-env.d.ts feat: add docs site as static Next.js export 2026-03-20 13:52:25 -07:00
next.config.js docs: fix GitHub Pages subpath base path for docs site (#12638) 2026-06-15 12:54:57 -07:00
package-lock.json feat: add docs site as static Next.js export 2026-03-20 13:52:25 -07:00
package.json feat: add docs site as static Next.js export 2026-03-20 13:52:25 -07:00
postcss.config.js feat: add docs site as static Next.js export 2026-03-20 13:52:25 -07:00
tailwind.config.ts feat: add docs site as static Next.js export 2026-03-20 13:52:25 -07:00
tsconfig.json style: fix prettier formatting 2026-03-20 14:04:06 -07:00