kindergarten/reading-platform-frontend/.env.production
tonytech 92071e5ba6 feat(frontend): 添加 Docker 部署配置和生产环境变量
- Dockerfile:多阶段构建,node:20-alpine 编译 Vue3,
  nginx:alpine 提供静态资源服务,使用国内 npm 镜像加速
- nginx.conf:配置 Vue Router history 模式(try_files),
  /api/ 和 /uploads/ 反向代理到后端容器
- .env.production:生产环境 API 地址(8.148.151.56:3001)
- .gitignore:放开 .env.production 提交权限(无敏感信息)
2026-02-28 19:32:45 +08:00

4 lines
142 B
Plaintext

VITE_API_BASE_URL=http://8.148.151.56:3001/api/v1
VITE_SERVER_BASE_URL=http://8.148.151.56:3001
VITE_APP_TITLE=幼儿阅读教学服务平台