Skip to content

Commit

Permalink
base-href in an Angular app defines the root path for resolving relat…
Browse files Browse the repository at this point in the history
…ive URLs to assets
  • Loading branch information
sanjeetkumaritoutlook committed Dec 13, 2024
1 parent 2bd8d81 commit 93be03e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 93be03e

Please sign in to comment.