docs: serve docs site at docs.continue.dev root (basePath "" + CNAME)

Move the docs GitHub Pages deployment from the project-page subpath
(continuedev.github.io/continue) to the custom domain docs.continue.dev,
served at the domain root.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Chad Metcalf 2026-07-20 19:12:50 -07:00
parent d0a3c0b626
commit 485293ba49
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions

View file

@ -1,11 +1,8 @@
/** @type {import('next').NextConfig} */
// When deploying to GitHub Pages the site is served from the `/continue/`
// subpath (https://continuedev.github.io/continue/). GitHub Actions sets
// GITHUB_ACTIONS=true, so we only apply the base path there — local dev
// (localhost:3005) keeps serving from the root.
const isGithubPages = process.env.GITHUB_ACTIONS === "true";
const basePath = isGithubPages ? "/continue" : "";
// Served at the root of the custom domain docs.continue.dev (via GitHub Pages),
// so there is no base path. (public/CNAME sets the custom domain.)
const basePath = "";
const nextConfig = {
output: "export",

1
docs-site/public/CNAME Normal file
View file

@ -0,0 +1 @@
docs.continue.dev