Commit 7d033df
fix: make site base path configurable + remove unused workflow (#56)
* fix: make site base path configurable + remove unused workflow
- Make astro.config.mjs read site/base from ASTRO_SITE and ASTRO_BASE
env vars with GitHub Pages defaults. Azure SWA can now build with
ASTRO_BASE=/ so images resolve correctly at root.
- Remove unused squad-heartbeat.yml workflow.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: normalize base path and prevent // in nav links
Address review feedback: normalize ASTRO_BASE to prevent double-slash
URLs when base is '/'. Also fix Header.astro to strip trailing slash
from BASE_URL before concatenating nav link paths.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent fd72379 commit 7d033df
3 files changed
Lines changed: 16 additions & 321 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
6 | 14 | | |
7 | | - | |
8 | | - | |
| 15 | + | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
0 commit comments