Skip to content

Commit

Permalink
add 404 redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
kwangjong committed Jan 26, 2025
1 parent d776999 commit 512731f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
run: npm run build

- name: Copy robots.txt
run: cp robots.txt build/
run: cp static/robots.txt build/

- name: Copy 404.html
run: cp static/404.html build/

- name: Checking Build
run: ls build
Expand Down
3 changes: 3 additions & 0 deletions static/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script>
window.location.href = "/" + "#" + window.location.pathname;
</script>
File renamed without changes.

0 comments on commit 512731f

Please sign in to comment.