Skip to content

Commit

Permalink
chore(demo): use baseHref=/ instead of baseHref=./
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Aug 14, 2024
1 parent fb150f8 commit 028ab8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx build demo --base-href='/'
- run: npx nx build demo
- name: Debug output
run: tree dist/demo/browser -P '*.html'
- name: Deploy preview
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: taiga-family/ci/actions/setup/[email protected]

- name: Building demo-app of git-branch without cache
run: npx nx build demo -c next --output-path ${{ env.DIST }} --base-href='/'
run: npx nx build demo -c next --output-path ${{ env.DIST }}

- name: Upload cache / ${{ env.CACHE_DIST_KEY }}
uses: actions/cache/[email protected]
Expand Down Expand Up @@ -129,6 +129,7 @@ jobs:
--branch snapshots/demo/next/${{ github.base_ref }} \
https://github.com/taiga-family/taiga-ui.git ${{ env.DIST_NEXT }}
# Dont forget to delete this step later
- name: Find and replace baseHref for next snapshot
uses: jacobtomlinson/gha-find-replace@v3
with:
Expand Down
10 changes: 2 additions & 8 deletions projects/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"output": "assets/taiga-ui/icons"
}
],
"baseHref": "./",
"baseHref": "/",
"styles": [
"{projectRoot}/src/normalize.less",
"{projectRoot}/src/styles.less",
Expand Down Expand Up @@ -91,11 +91,8 @@
"statsJson": false,
"progress": false
},
"development": {
"baseHref": "/"
},
"development": {},
"def": {
"baseHref": "/",
"fileReplacements": [
{
"replace": "{projectRoot}/src/emulate/change-detection-strategy.ts",
Expand All @@ -104,7 +101,6 @@
]
},
"shadow": {
"baseHref": "/",
"fileReplacements": [
{
"replace": "{projectRoot}/src/emulate/view-encapsulation.ts",
Expand All @@ -113,13 +109,11 @@
]
},
"fast": {
"baseHref": "/",
"sourceMap": false,
"namedChunks": false,
"statsJson": false
},
"coalescing": {
"baseHref": "/",
"fileReplacements": [
{
"replace": "{projectRoot}/src/emulate/ng-zone-options.ts",
Expand Down

0 comments on commit 028ab8a

Please sign in to comment.