Switch to client-side rendering only for front page since Sveltekit seems to struggle with SSR of fontColorContrast
This commit is contained in:
@@ -2,6 +2,8 @@ import { metricsDb } from '$lib/server/metrics';
|
|||||||
import { tests as testsStore, type Test, userTests } from '$lib/server/tests'
|
import { tests as testsStore, type Test, userTests } from '$lib/server/tests'
|
||||||
import { get } from 'svelte/store'
|
import { get } from 'svelte/store'
|
||||||
|
|
||||||
|
export const ssr = false
|
||||||
|
|
||||||
export async function load({ cookies, params }) {
|
export async function load({ cookies, params }) {
|
||||||
// Set a random session ID cookie if there is none, so we can uniquely
|
// 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.
|
// identify the user and not randomly change their experience on every page load.
|
||||||
|
|||||||
Reference in New Issue
Block a user