Astro integration for Zephyr Cloud deployment and module federation
npm install zephyr-astro-integrationAstro integration for Zephyr Cloud deployment and analytics platform.
``bash`
npm install zephyr-astro-integrationor
pnpm add zephyr-astro-integrationor
yarn add zephyr-astro-integration
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({
// Integration options (if needed)
}),
],
});
`
- Automated Asset Upload: Automatically uploads your Astro build assets to Zephyr Cloud
- Build Analytics: Provides detailed build statistics and performance metrics
- Easy Integration: Simple one-line addition to your Astro configuration
- Build Optimization: Integrates with Zephyr's optimization pipeline
The integration hooks into Astro's build lifecycle:
1. Setup Phase: Initializes the Zephyr engine during Astro config setup
2. Build Phase: Monitors the build process and collects metrics
3. Post-Build Phase: Extracts built assets and uploads them to Zephyr Cloud
4. Analytics: Generates build statistics for the Zephyr dashboard
The integration works out of the box without additional configuration. For advanced use cases, you can pass options to customize behavior:
`js``
withZephyr({
// Add custom options here when needed
});
- Astro 4.0 or higher
- Node.js 16 or higher
- Zephyr Cloud account
Apache-2.0