Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Steps component to zeabur.mdx #8115

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading