diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index dd89a62..bfd8ef1 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -33,11 +33,14 @@ jobs: with: node-version: "20" - name: Setup Pages + id: pages uses: actions/configure-pages@v3 - name: Install dependencies run: npm install - name: Build - run: npm run build + run: npm run build -- --base "${{ steps.pages.outputs.base_path }}" + - name: Custom 404 page + run: cp ./dist/index.html ./dist/404.html - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: