From 9ee63f29064bfd4a3ff650e11e6539abea9fd5ae Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 24 Sep 2023 15:09:26 +0300 Subject: [PATCH] Fix Skalop URL for prod --- app/utils/urls.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/utils/urls.ts b/app/utils/urls.ts index 41e5eb0c7..c966920f4 100644 --- a/app/utils/urls.ts +++ b/app/utils/urls.ts @@ -37,7 +37,10 @@ const staticAssetsUrl = ({ }) => `https://raw.githubusercontent.com/Sendouc/sendou-ink-assets/main/${folder}/${fileName}`; -export const SKALOP_BASE_URL = "ws://localhost:5900"; +export const SKALOP_BASE_URL = + process.env.NODE_ENV === "production" + ? "ws://skalop.sendou.ink" + : "ws://localhost:5900"; export const SENDOU_INK_BASE_URL = "https://sendou.ink";