feat: add an option to remove the landing page

This commit is contained in:
Levente Orban
2025-10-10 10:06:34 +02:00
parent a40b83c2b3
commit c98260efec
4 changed files with 34 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
import { redirect } from '@sveltejs/kit';
import type { PageServerLoad } from './$types';
import { PUBLIC_LANDING_INFO } from '$env/static/public';
export const load: PageServerLoad = async () => {
if (PUBLIC_LANDING_INFO === 'false') {
throw redirect(302, '/discover');
}
return {};
};