From f626dff4e71d48db4507ef7355da0bc01513f6ff Mon Sep 17 00:00:00 2001 From: xiao-xia-agent Date: Sat, 27 Jun 2026 00:02:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Web=20Dockerfile=20API=20URL=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E9=80=9A=E7=94=A8=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将硬编码的 VITE_API_URL=http://47.98.113.167:8000 改为 https://saas-api.xiaoxiajianji.com - 支持通过 --build-arg VITE_API_URL=xxx 在构建时覆盖默认值 --- infra/docker/web.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/docker/web.Dockerfile b/infra/docker/web.Dockerfile index 102ea5eaf..85c26776f 100644 --- a/infra/docker/web.Dockerfile +++ b/infra/docker/web.Dockerfile @@ -1,7 +1,7 @@ # Build stage FROM docker.m.daocloud.io/library/node:20 AS builder WORKDIR /app -ARG VITE_API_URL=http://47.98.113.167:8000 +ARG VITE_API_URL=https://saas-api.xiaoxiajianji.com ENV VITE_API_URL=$VITE_API_URL COPY apps/web/package.json apps/web/package-lock.json ./apps/web/ WORKDIR /app/apps/web