Skip to content

Commit

Permalink
config index.html, 404.html and deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LawandahP committed Dec 5, 2023
1 parent e82920c commit c3c3643
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ jobs:
with:
# Upload dist repository
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/gh-pages@v3
with:
# Replace dist with the directory of your build output
publish_dir: ./dist
- name: Build
run: npm run build
- name: Add 404.html
run: cp 404.html dist/404.html
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script>
<!-- <script>
(function(){
if (sessionStorage.redirect) {
history.replaceState(null, null, sessionStorage.redirect);
delete sessionStorage.redirect;
}
})();
</script>
</script> -->
</body>
</html>

0 comments on commit c3c3643

Please sign in to comment.