diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 316b84e..25b2d02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,10 @@ jobs: run: | yarn yarn build + + - name: Copy index.html to 404.html for routing + run: | + cp dist/index.html dist/404.html - name: Deploy website uses: JamesIves/github-pages-deploy-action@4.1.4 diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 57e0ea0..c450ecb 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -38,6 +38,10 @@ jobs: yarn yarn build -- --base /pr-preview/pr-${{ github.event.pull_request.number }}/ + - name: Copy index.html to 404.html for routing + run: | + cp dist/index.html dist/404.html + - name: Deploy preview uses: rossjrw/pr-preview-action@v1 with: