diff --git a/README.md b/README.md index 6f89ce7..d5f2f40 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Public marketing + documentation website for [Gameplane](https://github.com/ValgulNecron/Gameplane) — a Kubernetes-native game server control panel. -Live site: **https://valgulnecron.github.io/gameplane-website/** +Live site: **https://gameplane.net/** Built with [Astro](https://astro.build), Tailwind CSS 4, and self-hosted JetBrains Mono / Geist fonts. Fully static — no client framework. @@ -23,7 +23,7 @@ This repo is mounted as the `website/` git submodule of the main [Gameplane](htt Pushes to `main` deploy to GitHub Pages via `.github/workflows/deploy.yaml`. Pull requests are gated by `.github/workflows/ci.yaml` (lint, type-check, build). -The site is served under the `/gameplane-website` base path (GitHub Pages project site). All internal links go through `withBase()` from `src/lib/url.ts` — never hardcode root-relative hrefs. +The site is served from the root of the custom domain `gameplane.net` (`CUSTOM_DOMAIN` in `src/config.ts`, `public/CNAME`). All internal links go through `withBase()` from `src/lib/url.ts` — never hardcode root-relative hrefs, so unsetting `CUSTOM_DOMAIN` (base path `/gameplane-website`) keeps working. ### Switching to a custom domain diff --git a/public/CNAME b/public/CNAME new file mode 100644 index 0000000..55729c6 --- /dev/null +++ b/public/CNAME @@ -0,0 +1 @@ +gameplane.net diff --git a/public/robots.txt b/public/robots.txt index 550f9df..543ad72 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,4 +1,4 @@ User-agent: * Allow: / -Sitemap: https://valgulnecron.github.io/gameplane-website/sitemap-index.xml +Sitemap: https://gameplane.net/sitemap-index.xml diff --git a/src/config.ts b/src/config.ts index 79be4e1..b768629 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,10 +1,9 @@ // Deployment origin + base path for the site. // -// The site currently deploys to GitHub Pages as a project page, which serves -// it under /gameplane-website. When a custom domain exists, set CUSTOM_DOMAIN -// (e.g. "https://gameplane.dev") — that is the only line that changes; also -// add a public/CNAME file and flip the Pages settings. -const CUSTOM_DOMAIN: string | undefined = undefined; +// The site deploys to GitHub Pages under the custom domain gameplane.net +// (public/CNAME, Pages settings), so it is served from the root. Unset +// CUSTOM_DOMAIN to go back to the project-page path /gameplane-website. +const CUSTOM_DOMAIN: string | undefined = "https://gameplane.net"; export const SITE = CUSTOM_DOMAIN ?? "https://valgulnecron.github.io"; export const BASE = CUSTOM_DOMAIN ? "/" : "/gameplane-website";