fix redirect to index page on subpath hosting
Some checks failed
delpoy / build-and-deploy (push) Failing after 19s
Some checks failed
delpoy / build-and-deploy (push) Failing after 19s
This commit is contained in:
parent
66e440ed10
commit
4ce275760c
@ -1,6 +1,7 @@
|
||||
import type { PageLoad } from './$types';
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
import { PUBLIC_BASE_PATH } from '$env/static/public';
|
||||
|
||||
export const load: PageLoad = async () => {
|
||||
throw redirect(302, '/');
|
||||
throw redirect(302, `${PUBLIC_BASE_PATH}/`);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user