chore: update posthug and change all 301 to 307

This commit is contained in:
Rotimi Best
2023-12-14 22:41:16 +03:00
parent 5f2037101b
commit 845b87b21f
12 changed files with 24 additions and 40 deletions
@@ -3,10 +3,9 @@ import { client } from '$lib/utils/posthog';
export const load = ({ request }) => {
client.capture({
distinctId:
request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'cal.com page visited',
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'cal.com page visited'
});
throw redirect(301, 'https://cal.com/classroomio/demo');
throw redirect(307, 'https://cal.com/classroomio/demo');
};
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'discord page visited'
});
throw redirect(301, 'https://discord.gg/dRmxBpJw59');
throw redirect(307, 'https://discord.gg/dRmxBpJw59');
};
@@ -3,10 +3,9 @@ import { client } from '$lib/utils/posthog';
export const load = async ({ request }) => {
client.capture({
distinctId:
request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'github page visited',
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'github page visited'
});
throw redirect(301, 'https://github.com/rotimi-best/classroomio');
throw redirect(307, 'https://github.com/rotimi-best/classroomio');
};
@@ -3,13 +3,12 @@ import { client } from '$lib/utils/posthog';
export const load = async ({ request }) => {
client.capture({
distinctId:
request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'privacy page visited',
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'privacy page visited'
});
throw redirect(
301,
307,
'https://app.enzuzo.com/policies/privacy/958fc978-5477-11ee-a03b-7b111830c594'
);
};
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'signup'
});
throw redirect(301, 'https://app.classroomio.com/signup');
throw redirect(307, 'https://app.classroomio.com/signup');
};
@@ -3,13 +3,9 @@ import { client } from '$lib/utils/posthog';
export const load = async ({ request }) => {
client.capture({
distinctId:
request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'privacy page visited',
distinctId: request.headers.get('x-forwarded-for') || new Date().getTime().toString(),
event: 'privacy page visited'
});
throw redirect(
301,
'https://app.enzuzo.com/policies/tos/958fc978-5477-11ee-a03b-7b111830c594'
);
throw redirect(307, 'https://app.enzuzo.com/policies/tos/958fc978-5477-11ee-a03b-7b111830c594');
};