From 93be03e9ccdb2009b7acfb83fa50ba7c8bb1e297 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Dec 2024 22:28:23 +0530 Subject: [PATCH] base-href in an Angular app defines the root path for resolving relative URLs to assets --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ba9727b..85626b2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,8 +40,9 @@ jobs: run: npm ci - name: Build Angular app - run: npm run build -- --configuration production - + run: npm run build --prod --base-href=/angular-cop/ + #base-href in an Angular app defines the root path for resolving relative URLs to assets (CSS, JS, etc.). + #By default, Angular apps assume they are hosted at the root (/). - name: Upload build artifacts uses: actions/upload-pages-artifact@v3 with: