diff --git a/glebby-client/.env.development b/glebby-client/.env.development new file mode 100644 index 0000000..800058d --- /dev/null +++ b/glebby-client/.env.development @@ -0,0 +1 @@ +VITE_GLEBBY_SERVER_URL=ws://localhost:5000/glebby diff --git a/glebby-client/src/App.vue b/glebby-client/src/App.vue index d751ca4..fd5a8d4 100644 --- a/glebby-client/src/App.vue +++ b/glebby-client/src/App.vue @@ -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 } },