Astro + Starlight 静态站点部署设计
架构原则
构建阶段使用 Node.js,生产阶段只运行 Nginx。静态站点无需常驻 Node.js 服务。
部署验证
npm ci
npm run build
docker compose up -d --build
curl -I http://127.0.0.1:8088构建阶段使用 Node.js,生产阶段只运行 Nginx。静态站点无需常驻 Node.js 服务。
npm ci
npm run build
docker compose up -d --build
curl -I http://127.0.0.1:8088