Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
1646cd1583
commit
f704c77123
2 changed files with 2 additions and 15 deletions
|
@ -1,14 +0,0 @@
|
|||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
</script>
|
||||
|
||||
<div class="mx-auto max-w-page text-center">
|
||||
<h1 class="text-4xl font-bold mt-8">404</h1>
|
||||
<p class="py-4 text-xl">
|
||||
{#if $page.status === 404}
|
||||
The page you are trying to look for could not be found.
|
||||
{:else}
|
||||
An unexpected error occurred.
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
1
src/routes/+error.svelte
Symbolic link
1
src/routes/+error.svelte
Symbolic link
|
@ -0,0 +1 @@
|
|||
+page.svelte
|
|
@ -13,7 +13,7 @@ const config = {
|
|||
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
|
||||
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
||||
adapter: adapter({
|
||||
fallback: 'index.html'
|
||||
fallback: '404.html'
|
||||
})
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue