将你的 Astro 站点部署到 Fleek
你可以使用 Fleek 将静态 Astro 站点部署到其边缘优化的分散网络中。
¥You can use Fleek to deploy a static Astro site to their edge-optimized decentralized network.
本指南提供了使用 Fleek UI 和 CLI 将你的 Astro 网站部署到 Fleek 的完整演练。
¥This guide gives a complete walkthrough of deploying your Astro site to Fleek using the Fleek UI and CLI.
项目配置
标题部分 项目配置¥Project Configuration
你的 Astro 项目可以作为静态站点部署到 Fleek。
¥Your Astro project can be deployed to Fleek as a static site.
如何部署
标题部分 如何部署¥How to deploy
你可以通过网站 UI 或使用 Fleek 的 CLI(命令行接口)部署到 Fleek。
¥You can deploy to Fleek through the website UI or using Fleek’s CLI (command line interface).
平台 UI 部署
标题部分 平台 UI 部署¥Platform UI Deployment
-
Create a Fleek account.
-
Push your code to your online Git repository (GitHub).
-
Import your project into Fleek.
-
Fleek will automatically detect Astro and then you can configure the correct settings.
-
Your application is deployed!
Fleek CLI
标题部分 Fleek CLI-
Install the Fleek CLI.
-
Log in to your Fleek account from your terminal.
-
Run the build command to generate the static files. By default, these will be located in the
dist/
directory. -
Initialize your project. This will generate a configuration file.
-
You will be prompted to either create a new Fleek Site or use an existing one. Give the site a name and select the directory where your project is located.
-
Deploy your site.
了解更多
标题部分 了解更多¥Learn more