docs(h5): 添加 README 部署说明
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
050a1840ec
commit
7b5ff36b23
|
|
@ -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/`。
|
||||
Loading…
Reference in New Issue