# learnpath **Repository Path**: JerryLu/learnpath ## Basic Information - **Project Name**: learnpath - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-07 - **Last Updated**: 2026-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 学径 LearnPath 按自己的节奏自学课程;课程内容为静态 MDX,交互能力按阶段增强。 ## 本地开发(Sealos Devbox) ```bash npm install npm run dev ``` 通过 Devbox 外网地址访问(端口 **3000**)。 ## 生产启动 按 [Sealos DevBox 启动配置](https://sealos.run/docs/guides/devbox/entrypoint-sh):**在开发环境完成构建**,`entrypoint.sh` 只负责启动。 发版前: ```bash npm run build ``` 确认 `.next/BUILD_ID` 存在后,再发布版本。镜像启动执行根目录 `entrypoint.sh`(`next start -H 0.0.0.0 -p 3000`)。 `next dev` 留下的 `.next` 没有生产 `BUILD_ID`,不能用来发版。 ## 目录要点 | 路径 | 说明 | |---|---| | `content/courses/` | 课程静态内容(MDX) | | `src/components/` | UI 模块 | | `docs/catalog/` | 组件 / API 清单 | | `.cursor/rules/` | 项目约定 | | `references/` | 本地备课资料(考纲、课件、源文档),不入库 | | `public/sponsers/` | 页脚赞助 / 出品方 logo(透明底) | | `public/ide-files/` | 在线 IDE 的 `open()` 样例文件(大文件不入库;`npm run build` / `media:upload` 写入清单并上传对象存储) | | `object-storage.config.example.json` | 对象存储配置模板;真实密钥写在 gitignore 的 `object-storage.config.json` | `npm run build` 会先把 `public/` 下的图片、视频、IDE 样例文件等媒体上传到对象存储,生产页面从桶的公网地址加载,减轻应用服务器带宽。本地 `npm run dev` 仍读仓库里的文件。