移除 H5 商品兜底并补充内容发布流程

This commit is contained in:
inman
2026-07-24 12:06:41 +08:00
parent 1f509d4349
commit 160e82197e
2 changed files with 17 additions and 59 deletions

View File

@@ -8,3 +8,15 @@ Mobile H5, admin, and API workspace for the WonderQ MiniAPP project.
- `npm run dev:admin` starts the admin app.
- `npm run dev:api` starts the API service.
- `npm run build:all` builds all workspaces.
## 后端内容发布
商品数据的正式源文件是 `src/generated-products.json`。后端部署时请从仓库根目录执行内容发布流程,不要把商品数据重新打进 H5
```bash
npm run db:content:release -- validate
npm run db:content:release -- plan
npm run db:content:release -- apply
```
`apply` 会把商品、首页配置、活动和媒体引用写入生产数据库,并在 `artifacts/` 生成可回滚快照。需要回滚时,使用发布命令输出的 `rollback` 命令。