Skip to content

部署你的 Astro 站点进行渲染

你可以将 Astro 项目部署到 Render,这是一项使用免费 TLS 证书、全球 CDN、DDoS 保护、专用网络和自动部署功能构建网站的服务。

¥You can deploy your Astro project to Render, a service to build websites with free TLS certificates, a global CDN, DDoS protection, private networks, and auto deploys from Git.

¥How to deploy

  1. Create a render.com account and sign in

  2. Click the New + button from your dashboard and select Static Site

  3. Connect your GitHub or GitLab repository or alternatively enter the public URL of a public repository

  4. Give your website a name, select the branch and specify the build command and publish directory

    • Build Command: npm run build
    • Publish Directory: dist, for static sites; dist/client if you have any pages rendered on demand.
  5. Click the Create Static Site button

更多部署指南

Astro 中文网 - 粤ICP备13048890号