Skip to content

Commit

Permalink
Try to fix 404
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCheung0422 committed Jul 6, 2024
1 parent 522991c commit a5d7490
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/routes/404/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script>
import Page from "../+error.svelte";
</script>

<Page msg="Not Found" status="404" />
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
const config = {
kit: {
adapter: adapter({
fallback: '404.html',
// fallback: '404.html', // Not working on GitHub Pages
pages: './build',
assets: './build',
}),
Expand Down

0 comments on commit a5d7490

Please sign in to comment.