don't proxy requests that happen on the server
All checks were successful
Deploy Backend / deploy (push) Successful in 3m36s
Deploy Website / deploy (push) Successful in 6m8s

This commit is contained in:
Lee 2024-10-19 03:50:29 +01:00
parent a6576e9730
commit 238ec6e254
3 changed files with 2 additions and 3 deletions

BIN
bun.lockb

Binary file not shown.

@ -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<T>(url: string): Promise<T | undefined> {
try {
return await ky.get<T>(this.buildRequestUrl(true, url)).json();
return await ky.get<T>(this.buildRequestUrl(!isServer(), url)).json();
} catch (error) {
return undefined;
}

@ -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";