Skip to content

Commit 9edd524

Browse files
committed
docs: 更新 README
1 parent 8134d6b commit 9edd524

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@
2828
- 支持 [tailwindcss](https://github.com/tailwindlabs/tailwindcss)
2929
- 支持查看 vue 示例组件源码(使用 [vite-plugin-markdown-preview](https://github.com/jaskang/vite-plugin-markdown-preview)
3030

31+
#### 使用自定义域名部署
32+
33+
当 Github Pages 使用自定义域名时,需要修改 `.github/workflows/deploy.yml` 脚本中的 `APP_BASE_PATH``/`
34+
35+
**推荐使用第三方服务绑定域名来部署**
36+
37+
- [Netlify](https://www.netlify.com/)
38+
- [Vercel](https://vercel.com/)
39+
- [Cloudflare Pages](https://pages.cloudflare.com/)
40+
41+
使用仪表板创建新项目并更改这些设置:
42+
43+
- **构建命令:** `npm run build`
44+
- **输出目录:** `dist`
45+
- **node 版本:** `18` (或更高版本)
46+
47+
更多部署指南请查看 [VitePress 各平台部署指南](https://vitepress.dev/zh/guide/deploy#platform-guides)
48+
3149
### 开启访客统计
3250

3351
需在 `docs/.vitepress/config.ts` 中配置 `themeConfig.visitor`

0 commit comments

Comments
 (0)