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,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');
};