clouddreamai-cicd-setup 1.5.52 → 1.5.53
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/package.json
CHANGED
|
@@ -29,8 +29,8 @@ FROM nginx:alpine AS production
|
|
|
29
29
|
# 复制构建产物到 Nginx 默认目录
|
|
30
30
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
31
31
|
|
|
32
|
-
#
|
|
33
|
-
|
|
32
|
+
# 配置 Nginx 支持 SPA 路由(Vue Router history mode / React BrowserRouter)
|
|
33
|
+
RUN echo 'server { listen 80; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; } }' > /etc/nginx/conf.d/default.conf
|
|
34
34
|
|
|
35
35
|
# 暴露端口
|
|
36
36
|
EXPOSE 80
|