There was an error while loading. Please reload this page.
1 parent 62f54bc commit a0787c0Copy full SHA for a0787c0
.github/workflows/main.yml
@@ -26,6 +26,10 @@ jobs:
26
# changes the base-tag in index.html from '/' to 'BlazorGitHubPagesDemo' to match GitHub Pages repository subdirectory
27
- name: Change base-tag in index.html from / to BlazorGitHubPagesDemo
28
run: sed -i 's/<base href="\/" \/>/<base href="\/BlazorGitHubPagesDemo\/" \/>/g' release/wwwroot/index.html
29
+
30
+ # copy index.html to 404.html to serve the same file when a file is not found
31
+ - name: copy index.html to 404.html
32
+ run: release/wwwroot/index.html release/wwwroot/404.html
33
34
# add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore)
35
- name: Add .nojekyll file
0 commit comments