From a19ea1127608a7143f76f1711bcc5e8263b445db Mon Sep 17 00:00:00 2001 From: Sam Valladares Date: Sun, 21 Jun 2026 17:50:10 -0500 Subject: [PATCH] fix(pages): serve dashboard at site root, drop double /vestige nesting The Pages project site is already served from /vestige/, and the dashboard is built with base path /vestige. Nesting the build under _site/vestige/ served it at /vestige/vestige/ and left a broken redirect at the root. Copy the build to the artifact root so it serves correctly at /vestige/. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/pages.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index bce3ecf..2b9f8a5 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -49,27 +49,13 @@ jobs: - name: Assemble site root run: | + # The Pages project site is already served from /vestige/, and the + # dashboard is built with base path /vestige (VESTIGE_BASE_PATH), so + # its files go directly at the artifact root — the base path already + # accounts for the subpath. No extra subdirectory or redirect needed. rm -rf _site - mkdir -p _site/vestige - # Publish the dashboard under /vestige/ (matches VESTIGE_BASE_PATH). - cp -r apps/dashboard/build/* _site/vestige/ - # Root-level redirect so visitors hitting the bare Pages URL land - # on the dashboard instead of a 404. - cat > _site/index.html <<'HTML' - - - - - - - Vestige - - - -

Redirecting to the Vestige dashboard

- - - HTML + mkdir -p _site + cp -r apps/dashboard/build/* _site/ - uses: actions/configure-pages@v5