src/content/docs/en/guides/deploy/zephyr.mdx
import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'; import { Steps } from '@astrojs/starlight/components';
You can use Zephyr Cloud to deploy an Astro site with intelligent asset management, comprehensive build analytics, and first-class support for Module Federation architectures.
Zephyr operates on a Bring Your Own Cloud (BYOC) model, deploy to your choice of supported clouds through a unified interface without vendor lock-in. Switch providers anytime without changing your deployment workflow.
<PackageManagerTabs>
<Fragment slot="npm">
```shell
npx with-zephyr@latest
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm dlx with-zephyr@latest
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn dlx with-zephyr@latest
```
</Fragment>
</PackageManagerTabs>
2. Build and deploy your Astro site:
<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm run build
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm run build
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn run build
```
</Fragment>
</PackageManagerTabs>
3. Your application is deployed! Zephyr will provide a deployment URL and comprehensive build analytics. </Steps>
<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm install zephyr-astro-integration
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm add zephyr-astro-integration
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn add zephyr-astro-integration
```
</Fragment>
</PackageManagerTabs>
2. Add the integration to your astro.config.mjs:
```js
import { defineConfig } from 'astro/config';
import { withZephyr } from 'zephyr-astro-integration';
export default defineConfig({
integrations: [
withZephyr(),
],
});
```
3. Build and deploy your Astro site:
<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm run build
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm run build
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn run build
```
</Fragment>
</PackageManagerTabs>
4. Your application is deployed! Zephyr will provide a deployment URL and comprehensive build analytics. </Steps>
For more detailed information refer to the Zephyr Cloud documentation on deploying with Astro.
When you build your Astro site with the Zephyr integration, the following process occurs: