Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.49 KB

flightcontrol.mdx

File metadata and controls

33 lines (22 loc) · 1.49 KB
title description type i18nReady
将你的 Astro 网站通过 Flightcontrol 部署到 AWS
如何将你的 Astro 网站通过 Flightcontrol 部署到 AWS
deploy
true

import { Steps } from '@astrojs/starlight/components';

你可以使用 Flightcontrol 来部署 Astro 网站,Flightcontrol 为你的 AWS 账号提供完全自动化的部署。

它支持静态和 SSR(服务端渲染)的 Astro 网站。

如何部署

1. 在 [app.flightcontrol.dev/signup](https://app.flightcontrol.dev/signup?ref=astro) 创建一个 Flightcontrol 账号。
  1. 进入 app.flightcontrol.dev/projects/new/1

  2. 连接你的 GitHub 账号并选择你的仓库。

  3. 选择所需的 “配置类型”:

    • GUI(所有配置都通过 Flightcontrol 仪表盘管理),在此处选择 Astro StaticAstro SSR 预设。
    • flightcontrol.json(如果选择 “基础设施即代码” 的选项,那么所有配置都在你的仓库中),在这里选择 Astro 的示例配置,然后将其添加到你的代码库中,命名为 flightcontrol.json
  4. 根据需要进行配置调整。

  5. 点击 “创建项目” 并完成任何必需的步骤(如链接你的 AWS 账号)。

SSR 设置

要使用 SSR 部署,首先请确保设置 @astrojs/node 适配器。然后,按照上述步骤,选择适用于 Astro SSR 的配置。