point navigation.js to server page

This commit is contained in:
2025-01-24 11:28:26 +00:00
parent ba8fe7c725
commit cd05e3fb64

View File

@@ -1,11 +1,11 @@
import { goto } from "$app/navigation";
import { redirect, error } from '@sveltejs/kit';
import { error } from '@sveltejs/kit';
export const navigation = {
toHome: () => goto("/"),
toAbout: () => goto("/about"),
toContact: () => goto("/contact"),
toRepository: () => redirect(307, "/repo"),
toRepository: () => goto("/repo"),
to404: () => {
throw error(404, 'Page not found');
}