cicd 15
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m14s

This commit is contained in:
Gal Podlipnik 2025-06-12 17:25:09 +02:00
parent 8f07ee9173
commit 3c46bea2ec
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,6 @@ RUN npm ci
COPY . .
ENV VITE_API_BASE_URL=/api
ENV VITE_SOCKET_URL=/socket.io
RUN npm run build
FROM nginx:alpine

View File

@ -12,8 +12,8 @@ class SocketService {
if (this.socket && this.socket.connected) {
return this.socket;
}
const socketUrl =
import.meta.env.VITE_SOCKET_URL || 'http://localhost:3000';
const socketUrl = import.meta.env.DEV ? 'http://localhost:3000' : '';
this.socket = io(socketUrl, {
auth: {
token,