Make server url configurable

This commit is contained in:
2023-01-15 16:49:03 +01:00
parent 28e93b1fa3
commit e9e1977f12
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
VITE_GLEBBY_SERVER_URL=ws://localhost:5000/glebby
+1 -1
View File
@@ -12,7 +12,7 @@ export default {
},
data() {
return {
ws: new WebSocket('ws://localhost:5000/glebby'),
ws: new WebSocket(import.meta.env.VITE_GLEBBY_SERVER_URL),
model: null
}
},