Skip to content

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.

Add pageflare to your build command so it optimizes the output before Zephyr Cloud deploys it to the edge.

Terminal window
npm install -D @pageflare/cli

Update your package.json build script:

package.json
{
"scripts": {
"build": "astro build && npx @pageflare/cli dist/ --in-place --no-progress"
}
}

Or configure the build command in the Zephyr Cloud dashboard.

Set PAGEFLARE_LICENSE as an environment variable in the Zephyr Cloud dashboard or your CI environment.

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 errors
FrameworkOutput directory
Astrodist/
Next.js static exportout/
Vitedist/
Hugopublic/

pageflare processes 0 files The output directory in the build command doesn’t match your framework’s output. Update the path to match.