Skip to content

Commit

Permalink
Set ai_host to localhost by default
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Sep 12, 2023
1 parent f14dc9d commit 783d77d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/sockets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 783d77d

Please sign in to comment.