Skip to content

Commit bec5983

Browse files
committed
1 parent dc6d5de commit bec5983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- run: yarn --frozen-lockfile
2626
- run: yarn build
2727
- name: Build example "api"
28-
run: yarn --frozen-lockfile && yarn build
28+
run: yarn --frozen-lockfile && yarn build && sed -i. 's,<base href="/">,<base href="/framework/">,' dist/404.html
2929
working-directory: examples/api
3030
- name: Build example "chess"
3131
run: yarn --frozen-lockfile && yarn build
@@ -59,7 +59,7 @@ jobs:
5959
working-directory: examples/plot
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62-
- run: mkdir dist/examples && for i in examples/*; do if [ -d $i/dist ]; then mv -v $i/dist dist/examples/$(basename $i); fi; done
62+
- run: mkdir dist/examples && for i in examples/*; do if [ -d $i/dist ]; then mv -v $i/dist dist/examples/$(basename $i) && sed -i. 's,<base href="/">,<base href="/framework/examples/$(basename $i)/">,' dist/examples/$(basename $i)/404.html; fi; done
6363
- uses: cloudflare/pages-action@1
6464
with:
6565
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

0 commit comments

Comments
 (0)