构建管理后台
构建博客前台
配置 API 地址
构建生产前端前,请分别检查两个模块的.env.production,将 VITE_API_URL 修改为实际后端地址。
部署静态资源
- 将构建产物部署到 Nginx 的静态目录。
- 配置 history 模式路由回退到
index.html。 - 为静态资源配置缓存策略。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
构建博客前台与管理后台的静态资源。
cd blog-cms-ui
npm install
npm run build
cd blog-view-ui
npm install
npm run build
.env.production,将 VITE_API_URL 修改为实际后端地址。
index.html。