docs(h5): 添加 README 部署说明

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
caoqianming 2026-04-27 08:57:12 +08:00
parent 050a1840ec
commit 7b5ff36b23
1 changed files with 27 additions and 0 deletions

27
frontend-h5/README.md Normal file
View File

@ -0,0 +1,27 @@
# frontend-h5
H5 材料浏览端。
## 开发
```
npm install
npm run dev # http://localhost:5174/m/
```
## 生产
```
npm run build # 输出到 dist/
```
Nginx 挂载示例:
```
location /m/ {
alias /path/to/frontend-h5/dist/;
try_files $uri $uri/ /m/index.html;
}
```
API 仍走主站 `/api/`