Skip to content

Commit 5e866e5

Browse files
mikewolfdclaude
andcommitted
Serve at custom subdomain spicyregs.civictechdc.org
- Drop the /spicyregs-web base; site is served at the domain root - Point `site` at https://spicyregs.civictechdc.org - Add public/CNAME so Pages knows the custom domain - Update README deploy notes Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a79f7cb commit 5e866e5

3 files changed

Lines changed: 14 additions & 15 deletions

File tree

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,23 @@ JavaScript**: every call-to-action is a `mailto:` link and section scrolling is
1111

1212
```sh
1313
npm install
14-
npm run dev # local dev server at http://localhost:4321/spicyregs-web/
14+
npm run dev # local dev server at http://localhost:4321
1515
npm run build # static build to ./dist
1616
npm run preview # serve the built ./dist
1717
```
1818

19-
> The site is configured with `base: '/spicyregs-web'` for GitHub Pages, so
20-
> local URLs are served under `/spicyregs-web/`.
21-
2219
## Deploy
2320

2421
Pushing to `main` triggers `.github/workflows/deploy.yml`, which builds with the
2522
official [`withastro/action`](https://github.com/withastro/action) and publishes
26-
to **GitHub Pages**https://civictechdc.github.io/spicyregs-web/
27-
28-
Pages source must be set to **GitHub Actions** (Settings → Pages).
29-
30-
If a custom domain is added later, set `site` to that domain and change `base`
31-
back to `'/'` in `astro.config.mjs`.
23+
to **GitHub Pages** at the custom domain → **https://spicyregs.civictechdc.org/**
24+
25+
- Pages source is set to **GitHub Actions** (Settings → Pages).
26+
- The custom domain is set by `public/CNAME` + the Pages settings; DNS is a
27+
`CNAME` record `spicyregs``civictechdc.github.io` on the `civictechdc.org`
28+
zone.
29+
- `site` in `astro.config.mjs` is the full subdomain and there is no `base`
30+
(the site is served at the domain root).
3231

3332
## Structure
3433

astro.config.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ import { defineConfig } from 'astro/config';
33

44
// https://astro.build/config
55
// Static marketing site — no adapter needed, ships zero JS by default.
6-
// Deployed to GitHub Pages at https://civictechdc.github.io/spicyregs-web/
7-
// (project page), so `base` is the repo name. If a custom domain is added
8-
// later, set `site` to that domain and change `base` back to '/'.
6+
// Served at the root of the custom subdomain spicyregs.civictechdc.org via
7+
// GitHub Pages, so there is no base path. (The public/CNAME file tells Pages
8+
// the custom domain.)
99
export default defineConfig({
10-
site: 'https://civictechdc.github.io',
11-
base: '/spicyregs-web',
10+
site: 'https://spicyregs.civictechdc.org',
1211
});

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
spicyregs.civictechdc.org

0 commit comments

Comments
 (0)