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: {