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
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down