Skip to content

Platform Support Matrix

pageflare works with any platform that builds static sites. After your framework produces its output, pageflare optimizes those files before deployment. The integration method depends on how your platform runs builds.

There are three ways to integrate pageflare into your deployment pipeline:

MethodWhen to use
Dedicated guidePlatform has a full walkthrough with platform-specific features (e.g., image optimization)
GitHub ActionPlatform deploys from GitHub — add getappz/pageflare-cli@v1 as a build step
Build commandPlatform lets you customize the build command — append && pageflare dist/ --in-place

These platforms have full integration guides with platform-specific configuration, image optimization support, and troubleshooting.

PlatformIntegrationImage OptimizationGuide
VercelBuild command override in vercel.jsonVercel Image Optimization APIVercel guide
NetlifyBuild plugin or build commandNetlify Image CDNNetlify guide
Cloudflare PagesBuild command overrideCloudflare Image ResizingCloudflare Pages guide
GitHub PagesGitHub Actions workflowGitHub Pages guide
AWS Amplifyamplify.yml post-build stepAWS Amplify guide
Azure Static Web AppsGitHub Actions workflowAzure Static Web Apps guide
WordPressCLI or edge proxyCloudflare Image Resizing (proxy)WordPress guide
Self-hostedAny CI/CD pipeline, Docker, or manualSelf-hosted guide

These platforms deploy from GitHub repositories. Add pageflare as a step in your GitHub Actions workflow using the official action:

- name: Build site
run: npm run build
- name: Optimize with pageflare
uses: getappz/pageflare-cli@v1
with:
args: "dist/ --in-place"
PlatformBuild SystemOutput Directory
AWS via FlightcontrolGitHub Actionsdist/ (varies by framework)
AzionGitHub integrationdist/
BuddyGitHub integrationdist/
Deno DeployGitHub Actionsdist/
EdgeOne PagesGitHub integrationdist/
RenderGitHub auto-deploydist/
StormkitGitHub integrationdist/

For platforms that deploy from GitLab, add pageflare to your .gitlab-ci.yml:

optimize:
stage: build
image: node:22
script:
- npm ci
- npm run build
- npx @pageflare/cli dist/ --in-place --no-progress
artifacts:
paths:
- dist/
PlatformNotes
GitLab PagesUse the pipeline above with the pages job name and public/ as the output directory

These platforms let you customize the build command in their configuration file or dashboard. Append pageflare to your existing build command:

Terminal window
npm run build && npx @pageflare/cli dist/ --in-place --no-progress
PlatformWhere to configureNotes
AWS via SSTsst.config.ts or build commandWorks with SST’s static site construct
Clever CloudDashboard or CC_BUILD_COMMAND env varSet output directory to match your framework
Firebase HostingBuild before firebase deployRun pageflare after build, before deploy
Fleekfleek.json or dashboardStatic sites only
Fly.ioDockerfileSee self-hosted Docker guide
Google Cloud (App Engine / Cloud Run)cloudbuild.yaml or build scriptAdd as a build step before deployment
Herokupackage.json build scriptAdd to "build" script in package.json
Railwayrailway.json or dashboardCustomize the build command
SeenodeDashboard build commandStatic or Node.js hosting
SevallaDashboard build commandStatic site hosting
SurgeLocal CLIRun pageflare dist/ --in-place && surge dist/
ZeaburDashboard or zbpack.jsonCustomize build command
Zeropszerops.yml build sectionAdd pageflare to the build pipeline
Zephyr CloudBuild configurationStatic sites only

For platforms not listed above, use the self-hosted guide. The pattern is always the same:

Terminal window
# 1. Build your site
npm run build
# 2. Optimize
npx @pageflare/cli dist/ --in-place --no-progress
# 3. Deploy with your platform's CLI or method

pageflare provides multiple install methods for CI environments:

MethodCommandBest for
GitHub Actionuses: getappz/pageflare-cli@v1GitHub-based workflows
npmnpx @pageflare/cliAny Node.js environment
Shell installercurl -fsSL https://get.appz.dev/pageflare/install.sh | shNon-Node.js CI environments
Dockerdocker run --rm -v $(pwd):/site pageflare/cli /siteContainerized pipelines

See the CI/CD guide for detailed configuration options.