forked from ParadigmEducation/snowflake-notes
docs: 统一文档为 pnpm astro sync,避免误导;同步提交 env/tsconfig 调整
This commit is contained in:
@@ -20,10 +20,11 @@
|
||||
- 通用组件:`src/components/`(如 `Img.astro` 支持外部图床)
|
||||
- 内容扩展抽象:`src/lib/content/`(为未来 Typst 等格式预留)
|
||||
|
||||
## 配置
|
||||
## 配置与类型
|
||||
|
||||
- `PUBLIC_MEDIA_BASE_URL`:外部图床前缀(避免图片入库)
|
||||
- `PUBLIC_SITE_URL`:站点地址(可选,用于 canonical 等)
|
||||
- 修改内容集合(src/content/config.ts)后,需在本机运行 `pnpm astro sync`(Node >= 18.20.8,建议 >= 20),以生成 `.astro/types.d.ts`,否则类型可能退化为 any。
|
||||
|
||||
## 约定
|
||||
|
||||
|
||||
Reference in New Issue
Block a user