nsarrazin's picture
nsarrazin HF Staff
feat(tools): remove feature flag for tools and use env variable instead (#1433)
6a5e4c9 unverified
raw
history blame contribute delete
246 Bytes
import { base } from "$app/paths";
import { redirect } from "@sveltejs/kit";
export async function load({ parent }) {
const { enableCommunityTools } = await parent();
if (enableCommunityTools) {
return {};
}
redirect(302, `${base}/`);
}