prepare for docker

This commit is contained in:
LouisLam
2021-07-11 14:20:31 +08:00
parent 5f89940ab6
commit ae07cd9c35
6 changed files with 32 additions and 7 deletions

View File

@@ -29,7 +29,14 @@ export default {
},
created() {
socket = io(":3001", {
let wsHost;
if (localStorage.dev === "dev") {
wsHost = ":3001"
} else {
wsHost = ""
}
socket = io(wsHost, {
transports: ['websocket']
});