@dazhicheng/common 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +3 -2
- package/Dockerfile +3 -1
- package/package.json +1 -1
package/.env.development
CHANGED
|
@@ -14,8 +14,9 @@ VITE_API_PROXY_URL_dev = http://192.168.128.215:11000
|
|
|
14
14
|
VITE_API_MOCK = http://192.168.129.158:9998/mock/
|
|
15
15
|
VITE_API_PROXY_URL_test = http://192.168.127.72:11000/
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
# 域名
|
|
18
|
+
VITE_API_PROXY_URL_DEV_DOMAIN = http://fulfillment-dev.tiantai-jp.com:11000/
|
|
19
|
+
VITE_API_PROXY_URL_TEST_DOMAIN = http://fulfillment-test.tiantai-jp.com:11000/
|
|
19
20
|
|
|
20
21
|
<<<VITE_API_PROXY_URL>>>
|
|
21
22
|
|
package/Dockerfile
CHANGED
|
@@ -17,6 +17,8 @@ RUN pnpm install
|
|
|
17
17
|
|
|
18
18
|
# 再复制全部源代码,进行构建
|
|
19
19
|
COPY . .
|
|
20
|
+
# 同步生成文件
|
|
21
|
+
RUN pnpm sync:common
|
|
20
22
|
RUN pnpm "build:${NODE_ENV}"
|
|
21
23
|
|
|
22
24
|
# 阶段 2:部署到 Nginx
|
|
@@ -25,7 +27,7 @@ FROM nginx:stable-alpine
|
|
|
25
27
|
ARG NODE_ENV=dev
|
|
26
28
|
|
|
27
29
|
# 复制 Nginx 配置
|
|
28
|
-
COPY
|
|
30
|
+
COPY --from=builder /app/nginx_${NODE_ENV}.conf /etc/nginx/conf.d/default.conf
|
|
29
31
|
|
|
30
32
|
# 复制构建产物
|
|
31
33
|
COPY --from=builder /app/dist /usr/share/nginx/html
|