fix: use relative API URLs — all traffic through janichat.ru nginx

This commit is contained in:
Ai
2026-05-22 11:09:50 +03:00
parent 3da9a5949d
commit 941a526f3b

View File

@@ -6,8 +6,9 @@ RUN npm install
COPY . .
ARG VITE_API_URL=https://api.janichat.ru
ARG VITE_WS_URL=wss://api.janichat.ru
# Empty VITE_API_URL = use relative URLs (nginx proxies /api/ and /ws)
ARG VITE_API_URL=
ARG VITE_WS_URL=
ENV VITE_API_URL=$VITE_API_URL
ENV VITE_WS_URL=$VITE_WS_URL