Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions docs-site/next.config.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions docs-site/public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.continue.dev
Loading