diff --git a/web/src/main.js b/web/src/main.js index c048d8b..b9102f4 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -7,8 +7,14 @@ import VueSocketIOExt from 'vue-socket.io-extended'; Vue.config.productionTip = false; +// Get the URI for +let websocket_uri = `/`; +if (process.env.NODE_ENV === `development`) { + websocket_uri = `http:${window.location.hostname}:8081`; +}; + Vue.use(clipboard); -Vue.use(VueSocketIOExt, io(`http://${window.location.hostname}:8081`)); +Vue.use(VueSocketIOExt, io(websocket_uri)); new Vue({ store,