Buddy
Buddy is a CI/CD platform with a visual pipeline editor. pageflare integrates as an action in your pipeline — add it after the build step to optimize your site before deployment.
How It Works
Section titled “How It Works”Add a Node.js action to your Buddy pipeline that runs pageflare after your build step.
Step 1 — Configure the Pipeline
Section titled “Step 1 — Configure the Pipeline”In the Buddy pipeline editor, add a Node.js action after your build action:
Run:
npx @pageflare/cli dist/ --in-place --no-progressOr install pageflare as a dev dependency and reference it in your build action:
npm ci && npm run build && npx @pageflare/cli dist/ --in-place --no-progressStep 2 — Pro License
Section titled “Step 2 — Pro License”In Buddy, go to your project’s Variables settings and add:
- Key:
PAGEFLARE_LICENSE - Value: your license key
- Check Encrypted to protect the value.
Step 3 — Verify
Section titled “Step 3 — Verify”After running the pipeline, check the action 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/ |
| Hugo | public/ |
| Vite | dist/ |
| Eleventy | _site/ |
Troubleshooting
Section titled “Troubleshooting”Action fails with “command not found” Make sure the action uses a Node.js environment. Select the Node.js action type or use a Docker image with Node.js installed.