From efd241db67ae79dbd4acf2cb632c600bd5638934 Mon Sep 17 00:00:00 2001 From: Jace <2439560-jacefax@users.noreply.gitlab.com> Date: Wed, 21 Jun 2023 20:35:33 +0200 Subject: [PATCH] Switch to client-side rendering only for front page since Sveltekit seems to struggle with SSR of fontColorContrast --- src/routes/+page.server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 7ec4587..bec6781 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -2,6 +2,8 @@ import { metricsDb } from '$lib/server/metrics'; import { tests as testsStore, type Test, userTests } from '$lib/server/tests' import { get } from 'svelte/store' +export const ssr = false + export async function load({ cookies, params }) { // Set a random session ID cookie if there is none, so we can uniquely // identify the user and not randomly change their experience on every page load.