zephyr-astro-integration
v0.1.13
Published
Astro integration for Zephyr Cloud deployment and module federation
Downloads
1,153
Readme
zephyr-astro-integration
Astro integration for Zephyr Cloud deployment and analytics platform.
Installation
npm install zephyr-astro-integration
# or
pnpm add zephyr-astro-integration
# or
yarn add zephyr-astro-integrationUsage
Add the integration to your astro.config.mjs:
import { defineConfig } from 'astro/config';
import { withZephyr } from 'zephyr-astro-integration';
export default defineConfig({
integrations: [
withZephyr({
// Integration options (if needed)
}),
],
});Features
- 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
How it Works
The integration hooks into Astro's build lifecycle:
- Setup Phase: Initializes the Zephyr engine during Astro config setup
- Build Phase: Monitors the build process and collects metrics
- Post-Build Phase: Extracts built assets and uploads them to Zephyr Cloud
- Analytics: Generates build statistics for the Zephyr dashboard
Configuration
The integration works out of the box without additional configuration. For advanced use cases, you can pass options to customize behavior:
withZephyr({
// Add custom options here when needed
});Requirements
- Astro 4.0 or higher
- Node.js 16 or higher
- Zephyr Cloud account
License
Apache-2.0
