redirect to index page when accessing a page which does not exist
All checks were successful
delpoy / build-and-deploy (push) Successful in 35s

This commit is contained in:
bytedream 2023-08-14 22:47:22 +02:00
parent 677def02ca
commit 66e440ed10

View File

@ -0,0 +1,6 @@
import type { PageLoad } from './$types';
import { redirect } from '@sveltejs/kit';
export const load: PageLoad = async () => {
throw redirect(302, '/');
};