diff --git a/bun.lockb b/bun.lockb index cc078bf..6aa74d0 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/projects/common/src/service/service.ts b/projects/common/src/service/service.ts index 34634f5..1a2f24f 100644 --- a/projects/common/src/service/service.ts +++ b/projects/common/src/service/service.ts @@ -1,4 +1,5 @@ import ky from "ky"; +import { isServer } from "../utils/utils"; export default class Service { /** @@ -38,7 +39,7 @@ export default class Service { */ public async fetch(url: string): Promise { try { - return await ky.get(this.buildRequestUrl(true, url)).json(); + return await ky.get(this.buildRequestUrl(!isServer(), url)).json(); } catch (error) { return undefined; } diff --git a/projects/website/src/components/player/player-steam-profile.tsx b/projects/website/src/components/player/player-steam-profile.tsx index ad8065a..1d129e8 100644 --- a/projects/website/src/components/player/player-steam-profile.tsx +++ b/projects/website/src/components/player/player-steam-profile.tsx @@ -1,5 +1,3 @@ -"use client"; - import { FaSteam } from "react-icons/fa"; import Tooltip from "@/components/tooltip"; import ScoreSaberPlayer from "@ssr/common/player/impl/scoresaber-player";