fix: use relative API URLs — all traffic through janichat.ru nginx
This commit is contained in:
@@ -6,8 +6,9 @@ RUN npm install
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
ARG VITE_API_URL=https://api.janichat.ru
|
# Empty VITE_API_URL = use relative URLs (nginx proxies /api/ and /ws)
|
||||||
ARG VITE_WS_URL=wss://api.janichat.ru
|
ARG VITE_API_URL=
|
||||||
|
ARG VITE_WS_URL=
|
||||||
|
|
||||||
ENV VITE_API_URL=$VITE_API_URL
|
ENV VITE_API_URL=$VITE_API_URL
|
||||||
ENV VITE_WS_URL=$VITE_WS_URL
|
ENV VITE_WS_URL=$VITE_WS_URL
|
||||||
|
|||||||
Reference in New Issue
Block a user