Jiaqi Zhao
Menu
技术分享· 1 min read

用 Astro 和 Azure Static Web Apps 搭建个人技术站

Phase 1 实践记录:Astro SSG + Content Collections + GitHub Actions 部署。

#astro#azure#static-site

为什么选 Astro

  • 默认静态输出,契合个人博客
  • Content Collections 原生支持 Markdown
  • 与 Azure Static Web Apps Free 计划匹配

构建与部署

bun install
bun run build

产物目录为 dist/,在 workflow 中配置 output_location: dist

架构原则

保持 Phase 1 纯静态:不接数据库、不接 CMS、不接 Functions。