Use adapter-static

This commit is contained in:
Jon Staab
2024-08-21 13:20:59 -07:00
parent 23987dce98
commit 02f2e19a71
7 changed files with 25 additions and 59 deletions
-8
View File
@@ -1,8 +0,0 @@
import {redirect} from "@sveltejs/kit"
/** @type {import('./$types').LayoutServerLoad} */
export function load({route}) {
if (!route.id) {
redirect(307, "/home")
}
}
+6
View File
@@ -0,0 +1,6 @@
<script lang="ts">
import {onMount} from 'svelte'
import {goto} from "$app/navigation"
onMount(() => goto('/home'))
</script>
@@ -1 +0,0 @@
export const prerender = false