mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-25 20:49:12 +11:00
update .env
This commit is contained in:
parent
e22c40ddd5
commit
795d7be2e7
3 changed files with 7 additions and 2 deletions
|
@ -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=
|
4
frontend/.env.development
Normal file
4
frontend/.env.development
Normal 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
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue