From 9531f929974efd365763bf124e6de812dcac1884 Mon Sep 17 00:00:00 2001 From: maru Date: Sun, 21 Apr 2024 17:19:33 -0400 Subject: [PATCH] Use new API URL --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 3cbbfd84263..7d3f0e761e4 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -212,7 +212,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 : 'api'; +export const apiUrl = isLocal ? serverUrl : 'https://api.pokerogue.net'; export function setCookie(cName: string, cValue: string): void { const expiration = new Date();