From 528b7021ee2a192776dc5222dd3f25342fa65ea0 Mon Sep 17 00:00:00 2001 From: Greenlamp Date: Wed, 8 May 2024 13:40:43 +0200 Subject: [PATCH] fix local api url 2 --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 2034c8100f1..3d2df24276c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -222,7 +222,7 @@ export function executeIf(condition: boolean, promiseFunc: () => Promise): export const sessionIdKey = 'pokerogue_sessionId'; export const isLocal = window.location.hostname === 'localhost'; export const serverUrl = isLocal ? 'http://localhost:8001' : ''; -export const apiUrl = isLocal ? serverUrl : ''; +export const apiUrl = isLocal ? serverUrl : 'api'; export const fallbackApiUrl = isLocal ? serverUrl : 'api'; export function setCookie(cName: string, cValue: string): void {