File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,24 +11,23 @@ JavaScript**: every call-to-action is a `mailto:` link and section scrolling is
1111
1212``` sh
1313npm 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
1515npm run build # static build to ./dist
1616npm 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
2421Pushing to ` main ` triggers ` .github/workflows/deploy.yml ` , which builds with the
2522official [ ` 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
Original file line number Diff line number Diff 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.)
99export default defineConfig ( {
10- site : 'https://civictechdc.github.io' ,
11- base : '/spicyregs-web' ,
10+ site : 'https://spicyregs.civictechdc.org' ,
1211} ) ;
Original file line number Diff line number Diff line change 1+ spicyregs.civictechdc.org
You can’t perform that action at this time.
0 commit comments