chore: migration to SvelteKit 2

This commit is contained in:
Rotimi Best
2024-10-19 20:14:53 +01:00
parent 38618be099
commit e3e466232e
15 changed files with 9949 additions and 7275 deletions
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'cal.com page visited'
});
throw redirect(307, 'https://cal.com/classroomio/demo');
redirect(307, 'https://cal.com/classroomio/demo');
};
@@ -1,5 +1,5 @@
import { redirect } from '@sveltejs/kit';
export const load = async () => {
throw redirect(307, 'https://docs.google.com/presentation/d/1eqvNPNk167ZcP21gZGVAatdDpWAFL9lfmWJHHrzsVFc');
redirect(307, 'https://docs.google.com/presentation/d/1eqvNPNk167ZcP21gZGVAatdDpWAFL9lfmWJHHrzsVFc');
};
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'discord page visited'
});
throw redirect(307, 'https://discord.gg/dRmxBpJw59');
redirect(307, 'https://discord.gg/dRmxBpJw59');
};
@@ -7,5 +7,5 @@ export const load = async ({ request }) => {
event: 'github page visited'
});
throw redirect(307, 'https://github.com/rotimi-best/classroomio');
redirect(307, 'https://github.com/rotimi-best/classroomio');
};
@@ -4,5 +4,5 @@ import { redirect } from '@sveltejs/kit';
export const load = async () => {
const url = dev ? 'http://localhost:5173' : 'https://app.classroomio.com';
throw redirect(307, `${url}/org/*/courses?create=true`);
redirect(307, `${url}/org/*/courses?create=true`);
};
@@ -1,5 +1,5 @@
import { redirect } from '@sveltejs/kit';
export const load = async () => {
throw redirect(307, 'https://www.producthunt.com/posts/classroomio-2');
redirect(307, 'https://www.producthunt.com/posts/classroomio-2');
};
@@ -7,8 +7,8 @@ export const load = async ({ request }) => {
event: 'privacy page visited'
});
throw redirect(
307,
'https://app.enzuzo.com/policies/privacy/958fc978-5477-11ee-a03b-7b111830c594'
);
redirect(
307,
'https://app.enzuzo.com/policies/privacy/958fc978-5477-11ee-a03b-7b111830c594'
);
};
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'signup'
});
throw redirect(307, 'https://app.classroomio.com/signup');
redirect(307, 'https://app.classroomio.com/signup');
};
@@ -7,5 +7,5 @@ export const load = async ({ request }) => {
event: 'privacy page visited'
});
throw redirect(307, 'https://app.enzuzo.com/policies/tos/958fc978-5477-11ee-a03b-7b111830c594');
redirect(307, 'https://app.enzuzo.com/policies/tos/958fc978-5477-11ee-a03b-7b111830c594');
};
@@ -1,5 +1,5 @@
import { redirect } from '@sveltejs/kit';
export const load = async () => {
throw redirect(307, 'https://form.classroomio.com/f/1v25DtmN');
redirect(307, 'https://form.classroomio.com/f/1v25DtmN');
};
@@ -40,6 +40,6 @@ export async function load({ params }) {
pageMetaTags
};
} catch (e) {
throw error(404, `Could not find ${params.slug}`);
error(404, `Could not find ${params.slug}`);
}
}
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'cal.com page visited'
});
throw redirect(307, 'https://heyform.net/f/1qkguGkN');
redirect(307, 'https://heyform.net/f/1qkguGkN');
};