redirect to index page when accessing a page which does not exist
delpoy / build-and-deploy (push) Successful in 35s
delpoy / build-and-deploy (push) Successful in 35s
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
import type { PageLoad } from './$types';
|
||||||
|
import { redirect } from '@sveltejs/kit';
|
||||||
|
|
||||||
|
export const load: PageLoad = async () => {
|
||||||
|
throw redirect(302, '/');
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user