diff --git a/src/lib/ssr-fetch.ts b/src/lib/ssr-fetch.ts index e46470d..473d7e9 100644 --- a/src/lib/ssr-fetch.ts +++ b/src/lib/ssr-fetch.ts @@ -15,7 +15,7 @@ function getApiBaseUrl(): string { * @returns Profile data or null on failure */ export async function fetchProfileSSR( - token: string, + token?: string | null, timeoutMs = 1500, ): Promise { if (!token || token === "NO_TOKEN" || token.trim() === "") return null;