switch deploy method

This commit is contained in:
2023-07-05 23:39:36 +02:00
parent 093dfa9033
commit 0e19b7b0d3
8 changed files with 44 additions and 20 deletions

6
src/routes/+error.svelte Normal file
View File

@@ -0,0 +1,6 @@
<script>
import {page} from "$app/stores"
</script>
<h1>{$page.status}</h1>
<pre>{$page.error.message}</pre>

View File

@@ -1,2 +1,3 @@
export const prerender = true
export const trailingSlash = "always"
export const trailingSlash = "never"

View File

@@ -1,7 +1,6 @@
import {redirect} from "@sveltejs/kit"
import {base} from "$app/paths"
/** @type {import("./$types").PageLoad} */
export function load() {
throw redirect(307, `${base}/config/`)
throw redirect(300, "/config")
}

View File

@@ -1,17 +1,16 @@
<script>
import {base} from "$app/paths"
import {page} from "$app/stores"
</script>
<nav>
<a href="{base}/config/chords/" class:active={$page.url.pathname.endsWith("chords/")}>
<a href="/config/chords" class:active={$page.url.pathname.endsWith("chords/")}>
<span class="icon">piano</span>Chords
</a>
<a href="{base}/config/layout/" class:active={$page.url.pathname.endsWith("layout/")}>
<a href="/config/layout" class:active={$page.url.pathname.endsWith("layout/")}>
<span class="icon">keyboard</span>
Layout
</a>
<a href="{base}/config/settings/" class:active={$page.url.pathname.endsWith("settings/")}>
<a href="/config/settings" class:active={$page.url.pathname.endsWith("settings/")}>
<span class="icon">settings</span>
Settings
</a>

View File

@@ -1,7 +1,6 @@
import {redirect} from "@sveltejs/kit"
import {base} from "$app/paths"
/** @type {import("./$types").PageLoad} */
export function load() {
throw redirect(307, `${base}/config/chords/`)
throw redirect(300, "/config/chords")
}