Skip to content

Commit f410246

Browse files
committed
[DOP-25282] Rename API_URL env variable to SYNCMASTER__UI__API_BROWSER_URL
1 parent 2225f7f commit f410246

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ COPY --from=build /app/dist /usr/share/nginx/html
2323
COPY ./docker/entrypoint.sh /entrypoint.sh
2424
RUN chmod +x /entrypoint.sh
2525

26+
ARG API_URL=http://localhost:8000
27+
ENV SYNCMASTER__UI__API_BROWSER_URL=${API_URL}
28+
2629
ENTRYPOINT ["/entrypoint.sh"]
2730
CMD ["nginx", "-g", "daemon off;"]
2831
EXPOSE 3000

docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cat <<EOF > /usr/share/nginx/html/env-config.js
44
window.env = {
5-
API_URL: "${API_URL}",
5+
API_URL: "${SYNCMASTER__UI__API_BROWSER_URL}",
66
};
77
EOF
88

0 commit comments

Comments
 (0)