Skip to content

Commit

Permalink
Remove prerender logs
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rogg committed Oct 14, 2023
1 parent cd1295a commit 981e263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { LayoutServerLoad } from "./$types";
import { sendServerEvent } from "$lib/posthog";
export const load: LayoutServerLoad = ({url, cookies}) => {
sendServerEvent('$pageview', url, cookies)
if (!url.origin.includes("sveltekit")) sendServerEvent('$pageview', url, cookies);
return;
}

0 comments on commit 981e263

Please sign in to comment.