fix production attachment file origin

This commit is contained in:
richjohnrambo
2026-10-14 15:22:46 +08:00
parent c1338985d4
commit 8a26a4ccf9
4 changed files with 18 additions and 2 deletions
+5
View File
@@ -14,6 +14,11 @@ COPY web/. .
ARG TINODE_API_KEY=
ENV VITE_TINODE_API_KEY=$TINODE_API_KEY
# File downloads must use the canonical IM API origin. The web origin has its own independently
# deployed path router and may otherwise send /v0/file requests to an older IM server.
ARG TINODE_FILE_BASE=https://api.118im.com/v0/file
ENV VITE_TINODE_FILE_BASE=$TINODE_FILE_BASE
RUN npm run build
# ---- Stage 2: serve with nginx ----