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