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> |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| config | ||
| lib | ||
| public/images | ||
| scripts | ||
| .gitignore | ||
| next-env.d.ts | ||
| next.config.js | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.ts | ||
| tsconfig.json | ||