feat: go to dashboard from landing page 🚀 🚀

This commit is contained in:
Rotimi Best
2023-12-11 23:24:11 +03:00
parent fd0f6596aa
commit 9ee723c65b
3 changed files with 55 additions and 65 deletions
@@ -0,0 +1,11 @@
import { redirect } from '@sveltejs/kit';
import { client } from '$lib/utils/posthog';
export const load = ({ request }) => {
client.capture({
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'signup'
});
throw redirect(301, 'https://app.classroomio.com/signup');
};