Zephyr Cloud
Zephyr Cloud is an edge deployment platform for static sites and micro-frontends. pageflare integrates by adding a post-build optimization step to your build configuration.
How It Works
Section titled “How It Works”Add pageflare to your build command so it optimizes the output before Zephyr Cloud deploys it to the edge.
Step 1 — Install pageflare
Section titled “Step 1 — Install pageflare”npm install -D @pageflare/cliStep 2 — Configure the Build
Section titled “Step 2 — Configure the Build”Update your package.json build script:
{ "scripts": { "build": "astro build && npx @pageflare/cli dist/ --in-place --no-progress" }}Or configure the build command in the Zephyr Cloud dashboard.
Step 3 — Pro License
Section titled “Step 3 — Pro License”Set PAGEFLARE_LICENSE as an environment variable in the Zephyr Cloud dashboard or your CI environment.
Step 4 — Verify
Section titled “Step 4 — Verify”Check the build logs for the pageflare summary:
Done 145.2 KB saved (38.1%) 1.2s Files 42 total, 38 optimized, 4 unchanged, 0 errorsFramework Output Directories
Section titled “Framework Output Directories”| Framework | Output directory |
|---|---|
| Astro | dist/ |
| Next.js static export | out/ |
| Vite | dist/ |
| Hugo | public/ |
Troubleshooting
Section titled “Troubleshooting”pageflare processes 0 files The output directory in the build command doesn’t match your framework’s output. Update the path to match.