Files
website/src/routes/[...path]/+page.ts
bytedream a70338943d
All checks were successful
delpoy / build-and-deploy (push) Successful in 30s
fix redirect to index page on subpath hosting
2023-08-16 21:32:25 +02:00

8 lines
225 B
TypeScript

import type { PageLoad } from './$types';
import { redirect } from '@sveltejs/kit';
import { env } from '$env/dynamic/public';
export const load: PageLoad = async () => {
throw redirect(302, `${env.PUBLIC_BASE_PATH}/`);
};