Skip to content

Cleavr

Cleavr provisions and manages servers with Git-based deployments. pageflare integrates as part of the deployment hook — optimize your site after the build step on the provisioned server.

Add pageflare to Cleavr’s deployment hooks. The build hook runs after your framework builds the site, and pageflare optimizes the output before Cleavr activates the new deployment.

Step 1 — Install pageflare on the Server

Section titled “Step 1 — Install pageflare on the Server”

In Cleavr’s deployment hooks, add a Build hook:

Terminal window
curl -fsSL https://get.appz.dev/pageflare/install.sh | sh

Or if Node.js is available:

Terminal window
npm install -g @pageflare/cli

Add a hook after your build step:

Hook type: Build Script:

Terminal window
cd {{ releasePath }}
npm run build
pageflare dist/ --in-place --no-progress

Replace dist/ with your framework’s output directory.

In Cleavr, go to your site’s Environment settings and add:

  • Key: PAGEFLARE_LICENSE
  • Value: your license key

Check the deployment logs in Cleavr 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/
Hugopublic/
Vitedist/
Eleventy_site/

pageflare not found Make sure the install hook runs before the optimization hook. If using npm, ensure Node.js is available on the server.