From 92faa697fa921b8a392ec9b770575aaf665b0dc4 Mon Sep 17 00:00:00 2001 From: Rob Lester Date: Tue, 24 Feb 2026 11:04:22 +0000 Subject: [PATCH] Removed GHOST_CDN_URL from CI admin build The admin build no longer needs GHOST_CDN_URL baked in at build time. Deploy-time index.html rewriting (in Ghost-Moya) handles CDN URL injection per environment instead. A validation step confirms the build output uses relative paths and includes the ghost-cdn-url meta tag needed by the deploy-time rewrite. --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30a73bafb40..39c9de9a730 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1717,9 +1717,13 @@ jobs: env: DEPENDENCY_CACHE_KEY: ${{ needs.job_setup.outputs.dependency_cache_key }} - name: Build Admin - env: - GHOST_CDN_URL: https://assets.ghost.io/admin-forward/ run: yarn nx run admin:build + - name: Validate admin build + run: | + test -f apps/admin/dist/index.html + grep -q '"./assets/' apps/admin/dist/index.html + grep -q 'ghost-cdn-url' apps/admin/dist/index.html + echo "Admin build validated: relative paths, ghost-cdn-url meta present" - name: Upload build artifact id: upload-artifacts uses: actions/upload-artifact@v4