diff --git a/.env.production b/.env.production index 02f394b..4bddbaf 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,2 @@ VITE_API_URL=https://chat.madsky.ru -VITE_WS_URL=ws://localhost:3000 \ No newline at end of file +VITE_WS_URL=ws://chat.madsky.ru \ No newline at end of file diff --git a/src/stores/sockets.ts b/src/stores/sockets.ts index 3b49c01..1616d4c 100644 --- a/src/stores/sockets.ts +++ b/src/stores/sockets.ts @@ -32,7 +32,7 @@ export enum COMMAND { } export const useSocketsStore = defineStore('sockets', () => { - const url = import.meta.env.WS_URL + '/ws' + const url = import.meta.env.VITE_WS_URL + '/ws' const authStore = useAuthStore() const chatsStore = useChatsStore()