docs: 清理早期 mock 审计文档并对齐 README 与 PLAN
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
|
||||
### 前置要求
|
||||
|
||||
- Node.js 20+
|
||||
- pnpm 9+
|
||||
- Node.js 25+
|
||||
- pnpm 10+
|
||||
|
||||
### 安装依赖
|
||||
|
||||
@@ -140,19 +140,9 @@ async rewrites() {
|
||||
|
||||
## 部署
|
||||
|
||||
### 构建 Docker 镜像
|
||||
本仓库作为后端仓库(`juwan-backend`)的子模块接入 dev compose,通过其中的 Envoy 网关同源对外提供。
|
||||
|
||||
```bash
|
||||
docker build -t juwan-frontend:latest .
|
||||
docker tag juwan-frontend:latest 103.236.53.208:4418/library/juwan-frontend:latest
|
||||
docker push 103.236.53.208:4418/library/juwan-frontend:latest
|
||||
```
|
||||
|
||||
### 部署到 Kubernetes
|
||||
|
||||
```bash
|
||||
kubectl apply -f deploy/k8s/frontend.yaml
|
||||
```
|
||||
`Dockerfile` 使用 Next.js standalone 输出。后端 `deploy/dev/build.py` 会扫描出 `frontend` target 一并构建为 `juwan/frontend:dev`,随 compose 拉起,浏览器从 `http://localhost:18080` 访问。
|
||||
|
||||
## 开发规范
|
||||
|
||||
|
||||
Reference in New Issue
Block a user