mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-04 02:52:55 +08:00
- Introduced a new `startup` module to capture and manage startup diagnostics. - Implemented logging functionality with daily rotation and error reporting for application startup failures. - Updated the main application run function to return an exit code based on startup success or failure. - Added new dependencies for logging and diagnostics in `Cargo.toml`. - Increased request timeout in the control service for improved stability. - Expanded maximum search results in the federation module for better search capabilities.
cursor-byok 文档站
基于 Fumadocs 和 Next.js 的独立内容应用。
目录
apps/docs/
├── app/
│ ├── (home)/ # Hero 首页与开发者博客
│ └── docs/ # 用户文档布局和页面
├── components/ # MDX 组件
├── content/
│ ├── docs/ # 用户文档
│ └── blog/ # 开发者博客
└── lib/ # 内容源、站点信息与布局配置
本地开发
先安装依赖:
npm --prefix apps/docs install
从仓库根目录启动:
make dev-docs
浏览器打开 http://localhost:3000。
修改内容
- 在
content/docs中维护面向使用者的.mdx文档。 - 在
content/docs/meta.json中维护文档侧边栏标题与页面顺序。 - 在
content/blog中维护开发者文章,文件名以YYYY-MM-DD-开头用于排序和展示日期。 - 在
lib/shared.ts中维护站点名称、仓库和发布地址。
检查与构建
npm --prefix apps/docs run check
生产构建输出由 Next.js 管理。部署环境可通过 NEXT_PUBLIC_SITE_URL 设置站点公开地址;未设置时使用 https://docs.leokun.cn。