Add main index.html as 404.html

This commit is contained in:
SondreB 2023-02-28 09:50:58 +01:00
parent 0352c8d6e4
commit 63efc58f2f
2 changed files with 3 additions and 6 deletions

View File

@ -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:

View File

@ -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>