docs: 统一文档为 pnpm astro sync,避免误导;同步提交 env/tsconfig 调整

This commit is contained in:
2025-11-27 17:29:44 +08:00
parent c38606d675
commit 6302a7baef
5 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -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。
## 约定