Here are some known bugs and issues with Cloudflare Pages:
-
GitHub and GitLab are currently the only supported platforms for automatic CI/CD builds. Direct Upload allows you to integrate your own build platform or upload from your local computer.
-
Incremental builds are currently not supported in Cloudflare Pages.
-
Uploading a
/functionsdirectory through the dashboard's Direct Upload option does not work (refer to Using Functions in Direct Upload). -
Commits/PRs from forked repositories do not create a preview deployment.
- If you deploy using the Git integration, you cannot switch to Direct Upload later. However, if you already use a Git-integrated project and do not want to trigger deployments every time you push a commit, you can disable/pause automatic deployments. Alternatively, you can delete your Pages project and create a new one pointing at a different repository if you need to update it.
-
*.pages.devsubdomains currently cannot be changed. If you need to change your*.pages.devsubdomain, delete your project and create a new one. -
Default language and tool versions depend on the project's build image version. To pin a specific version of Node.js, Hugo, or another tool, set the corresponding environment variable or version file as described in Override default versions.
-
For users migrating from Netlify, Cloudflare does not support Netlify's Forms feature. Pages Functions are available as an equivalent to Netlify's Serverless Functions.
-
It is currently not possible to add a custom domain with
- a wildcard, for example,
*.domain.com. - a Worker already routed on that domain.
- a wildcard, for example,
-
It is currently not possible to add a custom domain with a Cloudflare Access policy already enabled on that domain.
-
Cloudflare's Load Balancer does not work with
*.pages.devprojects; anError 1000: DNS points to prohibited IPwill appear. -
When adding a custom domain, the domain will not verify if Cloudflare cannot validate a request for an SSL certificate on that hostname. In order for the SSL to validate, ensure Cloudflare Access or a Cloudflare Worker is allowing requests to the validation path:
http://{domain_name}/.well-known/acme-challenge/*. -
Advanced Certificates cannot be used with Cloudflare Pages due to Cloudflare for SaaS's certificate prioritization.
All requests to a Pages project are evaluated by Browser Integrity Check (BIC) on the Cloudflare-managed pages.dev zone. This includes requests to your *.pages.dev subdomain and requests made through a custom domain.
- You cannot turn off this check for a Pages project.
- Turning off BIC in your own zone, or adding a custom rule or configuration rule that skips or turns off BIC, only affects your zone. It does not affect the check on the
pages.devzone. - Clients that send some default library
User-Agentheaders (for example, the default Pythonurllibuser agent) receive an HTTP403response with error 1010.
To allow automated clients to reach your Pages project:
-
Recommended: Configure the client to send a descriptive
User-Agentheader that identifies your application. The client does not need to send a browser user agent. For example, in Python:import urllib.request req = urllib.request.Request( "https://example.com/data.json", headers={"User-Agent": "my-app/1.0 (+https://example.com)"}, ) urllib.request.urlopen(req) -
If you need full control over Browser Integrity Check, and your domain's nameservers are managed by Cloudflare, serve your site with Workers static assets on a Custom Domain or route in your zone. Your zone's Browser Integrity Check settings and rules then apply. Refer to Migrate from Pages to Workers.
-
Functions does not currently support adding/removing polyfills, so your bundler (for example, webpack) may not run.
-
passThroughOnException()is not currently available for Advanced Mode Pages Functions (Pages Functions which use an_worker.jsfile). -
passThroughOnException()is not currently as resilient as it is in Workers. We currently wrap Pages Functions code in a try...catch ↗︎ block and fallback to callingenv.ASSETS.fetch(). This means that any critical failures (such as exceeding CPU time or exceeding memory) may still throw an error.
If you would like to enable Cloudflare Access for your preview deployments and your *.pages.dev domain, you must:
-
In the Cloudflare dashboard, go to the Workers & Pages page.
Go to Workers & Pages ↗ -
Select your Pages project.
-
Go to Settings > Enable access policy.
-
Select Manage on the Access policy created for your preview deployments.
-
Under Access > Applications, select your project.
-
Select Configure.
-
Under Public hostname, in the Subdomain field, delete the wildcard (
*) and select Save. You may need to change the Application name at this step to avoid an error.
At this step, your *.pages.dev domain has been secured behind Access. To resecure your preview deployments:
- Go back to your Pages project > Settings > General > and reselect Enable access policy.
- Review that two Access policies, one for your
*.pages.devdomain and one for your preview deployments (*.<YOUR_SITE>.pages.dev), have been created.
If you have a custom domain and protected your *.pages.dev domain behind Access, you must:
- In the Cloudflare dashboard ↗︎, go to Zero Trust > Access controls > Applications. Select Create new application > Self-hosted and private.
- Select Add public hostname and select your custom domain from the Domain dropdown menu.
- Configure your access rules to define who can reach the Access authentication page.
- Select Create.
If you have an issue that you do not see listed, let the team know in the Cloudflare Workers Discord. Get your invite at discord.cloudflare.com ↗︎, and share your bug report in the #pages-general channel.
You may not be able to delete your Pages project if it has a high number (over 100) of deployments. The Cloudflare team is tracking this issue.
As a workaround, set up the Cloudflare CLI (cf) and use it to delete deployments individually. Once your project has 100 or fewer deployments, you can delete it.
cf pages deployments delete <DEPLOYMENT_ID> --project-name <PROJECT_NAME>Use --force to skip confirmation and --allow-aliased to allow deletion of deployments with aliases.
To delete deployments in bulk, save and run the script for your shell with your project name. The Bash script also requires jq. To set how many deletions run at once, pass a second argument in Bash or use -Throttle in PowerShell (default: 5).
Both scripts keep the active production deployment, including one restored by a rollback. They delete preview and older production deployments in batches. If a script cannot identify the active deployment, it stops before deleting anything. If a deletion fails, it stops after the current batch.
#!/usr/bin/env bash
set -euo pipefail
project="${1:?usage: $0 <project-name> [parallelism]}"
parallel="${2:-5}"
project_data=$(cf pages get "$project")
prod_id=$(jq -r '.canonical_deployment.id | strings' <<<"$project_data")
if [ -z "$prod_id" ]; then
echo "Cannot identify the active production deployment for '$project'. Nothing was deleted." >&2
exit 1
fi
echo "Production: $prod_id"
deleted=0
while :; do
deployments=$(cf pages deployments list \
--project-name "$project" --page 1 --per-page 25)
to_delete=$(jq -r --arg keep "$prod_id" '.[] | select(.id != $keep) | .id' <<<"$deployments")
if [ -z "$to_delete" ]; then
break
fi
count=$(printf '%s\n' "$to_delete" | wc -l | tr -d ' ')
echo "Deleting batch of $count deployments..."
failed=$(printf '%s\n' "$to_delete" | xargs -P "$parallel" -I{} \
sh -c 'cf pages deployments delete "$1" --project-name "$2" --force --allow-aliased >/dev/null \
|| echo "$1"' _ {} "$project")
if [ -n "$failed" ]; then
echo "The following deployments failed to delete:" >&2
printf '%s\n' "$failed" >&2
exit 1
fi
deleted=$((deleted + count))
done
if [ "$deleted" -eq 0 ]; then
echo "Nothing to delete. Production: $prod_id"
else
echo "Done. Deleted $deleted deployments. Kept production: $prod_id"
fiparam(
[Parameter(Mandatory=$true)][string]$ProjectName,
[int]$Throttle = 5
)
$ErrorActionPreference = "Stop"
$projectJson = cf pages get $ProjectName
if ($LASTEXITCODE -ne 0) {
throw "Failed to retrieve the Pages project '$ProjectName'."
}
$prodId = ($projectJson | ConvertFrom-Json).canonical_deployment.id
if ($prodId -isnot [string] -or [string]::IsNullOrWhiteSpace($prodId)) {
throw "Cannot identify the active production deployment for '$ProjectName'. Nothing was deleted."
}
Write-Output "Production: $prodId"
$deleted = 0
while ($true) {
$deploymentsJson = cf pages deployments list `
--project-name $ProjectName --page 1 --per-page 25
if ($LASTEXITCODE -ne 0) {
throw "Failed to list deployments for '$ProjectName'."
}
$deployments = $deploymentsJson | ConvertFrom-Json
$toDelete = @($deployments | Where-Object { $_.id -ne $prodId })
if ($toDelete.Count -eq 0) {
break
}
Write-Output "Deleting batch of $($toDelete.Count) deployments..."
$results = @($toDelete | ForEach-Object -Parallel {
$id = $_.id
$output = cf pages deployments delete $id `
--project-name $using:ProjectName --force --allow-aliased 2>&1
if ($LASTEXITCODE -ne 0) {
[pscustomobject]@{ Id = $id; Output = $output -join "`n" }
}
} -ThrottleLimit $Throttle)
if ($results.Count -gt 0) {
foreach ($failure in $results) {
[Console]::Error.WriteLine("Failed to delete $($failure.Id): $($failure.Output)")
}
exit 1
}
$deleted += $toDelete.Count
}
if ($deleted -eq 0) {
Write-Output "Nothing to delete. Production: $prodId"
} else {
Write-Output "Done. Deleted $deleted deployments. Kept production: $prodId"
}Cloudflare Load Balancing will not work without the host header set. To use a Pages project as target, make sure to select Add host header when creating a pool, and set both the host header value and the endpoint address to your pages.dev domain.
Refer to Use Cloudflare Pages as origin for a complete tutorial.