Skip to content

Commit

Permalink
Add Steps component to zeabur.mdx (#8115)
Browse files Browse the repository at this point in the history
Co-authored-by: Houston (Bot) <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
3 people authored May 2, 2024
1 parent 1740407 commit 4f769f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/content/docs/en/guides/deploy/zeabur.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: How to deploy your Astro site to the web on Zeabur.
type: deploy
i18nReady: true
---
import { Steps } from '@astrojs/starlight/components';

[Zeabur](https://zeabur.com) 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.
Expand All @@ -18,6 +20,7 @@ Astro outputs a static site by default. There is no need for any extra configura

To enable SSR in your Astro project and deploy on Zeabur:

<Steps>
1. Install [the `@zeabur/astro-adapter` adapter](https://www.npmjs.com/package/@zeabur/astro-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:

```bash
Expand All @@ -35,19 +38,21 @@ To enable SSR in your Astro project and deploy on Zeabur:
adapter: zeabur(),
});
```

</Steps>

## How to deploy

You can deploy your Astro site to Zeabur if the project is stored in GitHub.

<Steps>
1. Click <kbd>Create new project</kbd> in the [Zeabur dashboard](https://dash.zeabur.com).

2. Configure GitHub installation and import the repository.

3. Zeabur will automatically detect that your project is an Astro project and will build it using the `astro build` command.

4. Once the build is complete, you can bind a domain to your site and visit it.
</Steps>

After your project has been imported and deployed, all subsequent pushes to branches will generate new builds.

Expand Down

0 comments on commit 4f769f8

Please sign in to comment.