Skip to content

Commit

Permalink
fix backend url
Browse files Browse the repository at this point in the history
  • Loading branch information
erics118 committed May 16, 2024
1 parent bc15114 commit f4896e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/src/backend.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export const BACKEND_URL =
window.location.href.indexOf("localhost") === -1
? `${window.location.protocol.replace("http", "ws")}//${
window.location.hostname
}${window.location.port && `:${window.location.port}`}`
? process.env.BACKEND_URL!
: "ws://localhost:2567";

export const BACKEND_HTTP_URL = BACKEND_URL.replace("ws", "http");

0 comments on commit f4896e5

Please sign in to comment.