mirror of
https://github.com/polaroi8d/cactoide.git
synced 2026-03-22 06:05:28 +00:00
12 lines
294 B
TypeScript
12 lines
294 B
TypeScript
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 {};
|
|
};
|