Deploy your Astro Site to Zeabur
هذا المحتوى غير متوفر بلغتك بعد.
Zeabur offers hosting for full-stack web applications. Astro sites can be hosted as both SSR or static output.
This guide includes instructions for deploying to Zeabur through the website UI.
Project Configuration
Section titled Project ConfigurationStatic Site
Section titled Static SiteAstro outputs a static site by default. There is no need for any extra configuration to deploy a static Astro site to Zeabur.
Adapter for SSR
Section titled Adapter for SSRTo enable SSR in your Astro project and deploy on Zeabur:
-
Install the
@zeabur/astro-adapter
adapter to your project’s dependencies using your preferred package manager. If you’re using npm or aren’t sure, run this in the terminal: -
Add two new lines to your
astro.config.mjs
project configuration file.
How to deploy
Section titled How to deployYou can deploy your Astro site to Zeabur if the project is stored in GitHub.
-
Click Create new project in the Zeabur dashboard.
-
Configure GitHub installation and import the repository.
-
Zeabur will automatically detect that your project is an Astro project and will build it using the
astro build
command. -
Once the build is complete, you can bind a domain to your site and visit it.
After your project has been imported and deployed, all subsequent pushes to branches will generate new builds.
Learn more about Zeabur’s Deployment Guide.