update .env

This commit is contained in:
Troplo 2022-07-29 21:27:40 +10:00
parent e22c40ddd5
commit 795d7be2e7
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,4 @@
VUE_APP_VERSION=[AIV]{version}[/AIV] VUE_APP_VERSION=[AIV]{version}[/AIV]
VUE_APP_BUILD_DATE=[AIV]{date}[/AIV] VUE_APP_BUILD_DATE=[AIV]{date}[/AIV]
VUE_APP_BASE_URL= VUE_APP_BASE_URL=
VUE_APP_SOCKET_URL=

View file

@ -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

View file

@ -74,7 +74,7 @@ Vue.use(VueNativeNotification, {
Vue.use({ Vue.use({
install(Vue) { install(Vue) {
Vue.prototype.$socket = SocketIO("", { Vue.prototype.$socket = SocketIO(process.env.VUE_APP_SOCKET_URL, {
transports: ["websocket", "polling"], transports: ["websocket", "polling"],
headers: { headers: {
Authorization: localStorage.getItem("session") Authorization: localStorage.getItem("session")