From 7c5d7c10fa6eb04925f2943b51fe52f4cc09160f Mon Sep 17 00:00:00 2001 From: IBRAHIM IBRAHIM <66755652+Ibrahim2595@users.noreply.github.com> Date: Wed, 22 Jul 2026 14:12:39 -0400 Subject: [PATCH] Fix: serve at custom domain www.rossoctl.dev (baseUrl '/', add CNAME) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The site is now on the custom domain www.rossoctl.dev, which serves at the root, but it shipped baseUrl '/.github/' — so production assets resolved to /.github/assets/* (404) and the site rendered unstyled. Set baseUrl to '/' and url to the custom domain, and add static/CNAME so the domain persists across GitHub Pages deploys. Assisted-By: Claude (Anthropic AI) Signed-off-by: IBRAHIM IBRAHIM <66755652+Ibrahim2595@users.noreply.github.com> --- docusaurus.config.ts | 18 +++++++----------- static/CNAME | 1 + 2 files changed, 8 insertions(+), 11 deletions(-) create mode 100644 static/CNAME diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 405e241..cd5f15a 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -16,18 +16,14 @@ const config: Config = { // `@docusaurus/faster` + `future: { experimental_faster: true }` if build // speed becomes a concern. - // === GitHub Pages: deployed from the rossoctl/.github repo === - // Served today at https://rossoctl.github.io/.github/ (project-page path = - // repo name ".github"). When a custom domain is added, flip baseUrl to '/' - // and drop a static/CNAME file (change all four below together). - // On GitHub Pages this is a project page served at rossoctl.github.io/.github/. - // On Netlify PR previews the site is served at the domain root, so baseUrl must - // be '/' there (Netlify sets NETLIFY=true and DEPLOY_PRIME_URL). When the - // rossoctl.dev custom domain is added, baseUrl becomes '/' everywhere. - url: process.env.DEPLOY_PRIME_URL || 'https://rossoctl.github.io', - baseUrl: process.env.NETLIFY ? '/' : '/.github/', + // Published to GitHub Pages at the custom domain https://www.rossoctl.dev + // (HTTPS enforced; the domain lives in static/CNAME). A custom domain serves + // at the root, so baseUrl is '/'. Netlify PR previews also serve at the root; + // DEPLOY_PRIME_URL sets the preview's canonical url. + url: process.env.DEPLOY_PRIME_URL || 'https://www.rossoctl.dev', + baseUrl: '/', organizationName: 'rossoctl', // GitHub org that owns the repo - projectName: '.github', // repo name -> drives the Pages path + projectName: '.github', // repo name // Relaxed to 'warn' so the docs synced from rossoctl/rossoctl:docs/ (which // still contain some cross-repo relative links) don't fail the Pages build. diff --git a/static/CNAME b/static/CNAME new file mode 100644 index 0000000..aa452c7 --- /dev/null +++ b/static/CNAME @@ -0,0 +1 @@ +www.rossoctl.dev