fix: ws baseurl not working on prod build

This commit is contained in:
2024-03-16 10:24:34 +07:00
parent b0bb8c9017
commit 99c479ade2
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -1 +1,3 @@
export const API_BASEURL = __DEV__ ? "http://localhost:3000" : "";
export const API_BASEURL = __DEV__
? "http://localhost:3000"
: location.protocol + "//" + location.host;