Skip to content

Clever Cloud

Clever Cloud is a PaaS that deploys applications from Git. pageflare integrates through environment-based build hooks or custom build scripts.

Clever Cloud runs your build command during deployment. Add pageflare to the build script in your package.json or use Clever Cloud’s build hook environment variable.

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

Set CC_POST_BUILD_HOOK in the Clever Cloud console or CLI:

Terminal window
clever env set CC_POST_BUILD_HOOK "npx @pageflare/cli dist/ --in-place --no-progress"

Set the environment variable via the Clever Cloud CLI or console:

Terminal window
clever env set PAGEFLARE_LICENSE your-license-key

Or in the console: Environment variables tab.

Check the deployment logs in the Clever Cloud console 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 hook not running Make sure CC_POST_BUILD_HOOK is set correctly. The hook runs after the main build command completes.

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