diff --git a/frontend/.env b/frontend/.env index 212e9ab..8930c41 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,3 +1,4 @@ VUE_APP_VERSION=[AIV]{version}[/AIV] VUE_APP_BUILD_DATE=[AIV]{date}[/AIV] -VUE_APP_BASE_URL= \ No newline at end of file +VUE_APP_BASE_URL= +VUE_APP_SOCKET_URL= \ No newline at end of file diff --git a/frontend/.env.development b/frontend/.env.development new file mode 100644 index 0000000..f0c30d0 --- /dev/null +++ b/frontend/.env.development @@ -0,0 +1,4 @@ +VUE_APP_VERSION=[AIV]{version}[/AIV] +VUE_APP_BUILD_DATE=[AIV]{date}[/AIV] +VUE_APP_BASE_URL= +VUE_APP_SOCKET_URL=ws://localhost:23998 \ No newline at end of file diff --git a/frontend/src/main.js b/frontend/src/main.js index 6c1df4c..1e23fbc 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -74,7 +74,7 @@ Vue.use(VueNativeNotification, { Vue.use({ install(Vue) { - Vue.prototype.$socket = SocketIO("", { + Vue.prototype.$socket = SocketIO(process.env.VUE_APP_SOCKET_URL, { transports: ["websocket", "polling"], headers: { Authorization: localStorage.getItem("session")