使用 Flightcontrol 将你的 Astro 站点部署到 AWS
你可以使用 Flightcontrol 部署 Astro 站点,它为你的 AWS 账户提供全自动部署。
¥You can deploy an Astro site using Flightcontrol, which provides fully-automated deployments to your AWS account.
支持静态站点和 SSR Astro 站点。
¥Supports both static and SSR Astro sites.
如何部署
标题部分 如何部署¥How to Deploy
-
Create a Flightcontrol account at app.flightcontrol.dev/signup
-
Connect your GitHub account and select your repo
-
Select your desired “Config Type”:
GUI
(all config managed through Flightcontrol dashboard) where you will select theAstro Static
orAstro SSR
presetflightcontrol.json
(“infrastructure as code” option where all config is in your repo) where you will select an Astro example config, then add it to your codebase asflightcontrol.json
-
Adjust any configuration as needed
-
Click “Create Project” and complete any required steps (like linking your AWS account).
SSR 设置
标题部分 SSR 设置¥SSR Setup
要使用 SSR 支持进行部署,请确保首先设置 @astrojs/node
适配器。然后,按照上述步骤操作,为 Astro SSR 选择适当的配置。
¥To deploy with SSR support, make sure you first set up the @astrojs/node
adapter. Then, follow the steps above, choosing the appropriate configurations for Astro SSR.