forked from coracle/flotilla
Use adapter-static
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import {redirect} from "@sveltejs/kit"
|
||||
|
||||
/** @type {import('./$types').LayoutServerLoad} */
|
||||
export function load({route}) {
|
||||
if (!route.id) {
|
||||
redirect(307, "/home")
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user