From 783d77d0965b2ae7e06ef15a796ccd64fb5a32e6 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Tue, 12 Sep 2023 10:42:51 -0600 Subject: [PATCH] Set ai_host to localhost by default --- src/lib/sockets.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/sockets.ts b/src/lib/sockets.ts index 6b74212de8..62c09bb58a 100644 --- a/src/lib/sockets.ts +++ b/src/lib/sockets.ts @@ -51,7 +51,8 @@ if ( } else if (typeof process !== "undefined" && process.env.NODE_ENV === "test") { // don't set ai host because we dont use it in tests (stubbed) } else { - console.warn("AI Host not set, AI reviews will not work", window.location.hostname); + console.warn("AI Host not set, defaulting to localhost", window.location.hostname); + ai_host = "http://localhost:13284"; } export const ai_socket = ai_host