mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-28 22:10:42 +00:00
Add main index.html as 404.html
This commit is contained in:
parent
0352c8d6e4
commit
63efc58f2f
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -20,6 +20,9 @@ jobs:
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Redirect 404 to Index for SPA
|
||||
run: cp dist/index.html dist/404.html
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
|
@ -1,6 +0,0 @@
|
||||
<script>
|
||||
// Disabled until santization is verified.
|
||||
// const path = window.location.pathname.slice(1);
|
||||
// localStorage.setItem("path", path);
|
||||
window.location.href = "../";
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user