try again
All checks were successful
Build & Deploy / build (push) Successful in 40s

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2024-07-10 22:18:31 +02:00
parent 1646cd1583
commit f704c77123
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 2 additions and 15 deletions

View file

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

@ -0,0 +1 @@
+page.svelte

View file

@ -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'
})
}
};