Skip to content

Commit 860949b

Browse files
authored
Add step to create 404.html in deploy workflow
Added step to create 404.html for History API routing.
1 parent 6284dc7 commit 860949b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ jobs:
4848
- name: Build website (prebuild runs render-docs.js)
4949
working-directory: ./website
5050
run: npm run build
51-
51+
52+
- name: Create 404.html for History API routing
53+
run: cp website/dist/index.html website/dist/404.html
54+
5255
- name: Upload artifact
5356
uses: actions/upload-pages-artifact@v3
5457
with:

0 commit comments

Comments
 (0)