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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clouddreamai-cicd-setup",
3
- "version": "1.5.52",
3
+ "version": "1.5.53",
4
4
  "description": "CloudDreamAI GitLab CI/CD 自动配置工具 - 支持 NestJS/Vue/React 项目的一键 CI/CD 配置",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- # 复制 Nginx 配置(如果有自定义配置)
33
- # COPY nginx.conf /etc/nginx/nginx.conf
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