From 9d8226b80d04037879367efb0a0a3045e27cba66 Mon Sep 17 00:00:00 2001 From: Fedele Mantuano Date: Mon, 30 Nov 2026 11:23:33 +0100 Subject: [PATCH] feat: serve the blog at blog.codegeeks.ai Canonical, Open Graph and hreflang URLs are built from the Astro site value. The README documents the GitHub Pages custom domain and its DNS record. --- README.md | 16 +++++++++++++++- astro.config.mjs | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cbd8bbf..faaa469 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,21 @@ social links are prepared in the code and disabled until their content is ready. 7. In repository Settings > Pages, choose GitHub Actions as the source. The configured production URL in `astro.config.mjs` is -`https://CodeGeeksAI.github.io`. The root URL redirects to `/it/`. +`https://blog.codegeeks.ai`. The root URL redirects to `/it/`. + +## Custom domain + +GitHub Pages serves the site at `blog.codegeeks.ai`. The domain is set in +repository Settings > Pages > Custom domain; a workflow deployment needs no +`CNAME` file. In the `codegeeks.ai` DNS zone, the `blog` record is a `CNAME` to +`codegeeksai.github.io` in DNS-only mode: a proxied record prevents GitHub from +issuing and renewing the certificate. GitHub redirects +`https://codegeeksai.github.io/` to the custom domain, keeping the path. + +The `codegeeks.ai` domain is verified in the organization's Pages settings, so +no other account can claim one of its subdomains. Keep the `site` value in +`astro.config.mjs` equal to the custom domain: canonical, Open Graph, and +`hreflang` URLs are built from it. ## Pages and languages diff --git a/astro.config.mjs b/astro.config.mjs index b94d2c4..005551e 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,7 +1,7 @@ import { defineConfig } from 'astro/config'; export default defineConfig({ - site: 'https://CodeGeeksAI.github.io', + site: 'https://blog.codegeeks.ai', output: 'static', trailingSlash: 'always', security: {