Skip to content

DeployHQ

DeployHQ automates deployments from Git repositories. pageflare integrates as a build command in DeployHQ’s build pipeline — optimize your site before DeployHQ transfers files to your server.

Add pageflare to DeployHQ’s build commands. DeployHQ runs these commands after pulling your repository and before deploying files.

In your DeployHQ project, go to Build Commands and add:

Terminal window
npm ci
npm run build
npx @pageflare/cli dist/ --in-place --no-progress

Set the Repository subdirectory to your project root and the Deployment subdirectory to your framework’s output directory (e.g., dist/).

In DeployHQ, go to your project’s Environment Variables and add:

  • Key: PAGEFLARE_LICENSE
  • Value: your license key

After deploying, check the build log in DeployHQ 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/

Build commands fail Make sure DeployHQ’s build environment has Node.js installed. Check that the Node.js version is 20 or later.