Make server url configurable
This commit is contained in:
parent
28e93b1fa3
commit
e9e1977f12
1
glebby-client/.env.development
Normal file
1
glebby-client/.env.development
Normal file
@ -0,0 +1 @@
|
|||||||
|
VITE_GLEBBY_SERVER_URL=ws://localhost:5000/glebby
|
@ -12,7 +12,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
ws: new WebSocket('ws://localhost:5000/glebby'),
|
ws: new WebSocket(import.meta.env.VITE_GLEBBY_SERVER_URL),
|
||||||
model: null
|
model: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user