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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gameplane.net
2 changes: 1 addition & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://valgulnecron.github.io/gameplane-website/sitemap-index.xml
Sitemap: https://gameplane.net/sitemap-index.xml
9 changes: 4 additions & 5 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Loading