Skip to content

Commit b2ebec7

Browse files
committed
🎨 Attempt to re-route page loading errors to /404
1 parent 36d6ea9 commit b2ebec7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/routes/+error.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script lang="ts">
2+
import { redirect } from '@sveltejs/kit'
3+
4+
export const prerender = true
5+
6+
throw redirect(302, '/404')
7+
</script>

0 commit comments

Comments
 (0)