fix: route production IM API correctly
Deploy im-webapp production / deploy (push) Successful in 42s
Deploy im-webapp production / deploy (push) Successful in 42s
This commit is contained in:
@@ -14,6 +14,11 @@ COPY web/. .
|
||||
ARG TINODE_API_KEY=
|
||||
ENV VITE_TINODE_API_KEY=$TINODE_API_KEY
|
||||
|
||||
# The production web UI and IM REST API use different origins. Local development leaves this unset
|
||||
# and continues to use Vite's same-origin /v1/im proxy.
|
||||
ARG TINODE_API_BASE=
|
||||
ENV VITE_TINODE_API_BASE=$TINODE_API_BASE
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user