Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Pages pricing

Hello I am quite confused by pages pricing. On the pages.dev site there are three options for free, 2O$ and 200$. However in my cloudflare dashboard in the Workers & Pages section on the Plans page there are only two options, one free and the second one for 5$ + monthly usage. What's the difference?

Hard reload causes "Pages had an internal error, if this persists please contact support!"

Hard reload on our pages app leads the error above. How do we debug?

Pages Build Failing due to 404 package not found

I'm getting a new error in my next-on-pages project during the build phase, I went back to a previously successful build and re-deployed it and it is also failing as well. Error: ```...

"Variant Also Negotiates" Error Occurs When Linking With Ezoic Ads

I'm using Cloudflare Pages with a custom domain to host my current site, and I want to integrate Ezoic Ads. However, every time I integrate Ezoic with Cloudflare on their dashboard, I am getting a "Variant Also Negotiates" error. Is this not possible because the apex CNAME needs to be on Cloudflare? I'm a bit lost at the moment, so any help would be appreciated! Thanks!...

Cannot install dependencies in monorepo with pnpm using v2 build system

I attempted to move an existing pages app to pnpm workspaces, with one package being the pages website. However, due to npm not supporting pnpm workspaces, the installation process throws an error. This is despite specifying pnpm in engines in package.json. Any ideas for how to be able to make Cloudflare use pnpm for installing dependencies or disabling automatic installation entirely? I am running this on the v2 build system and have an astro build config with the cwd set to the subfolder containing the website....

confused about the features and limits of cloudflare pages

helllo everyone 🙂 noob here, i'd like to get some insight as to should i be paying for cloudflare pages? it says i would only get 50 subrequests, what are those?...

web streaming with Remix "defer" does not work with Page Rule->Cache Level->Cache all.

I have searched for a while and found out the following: In my current Remix Project with Cloudflare Pages, web streaming does not work when I set a "cache everything" Page Rule in Sites->Rules->Page Rules. On my local development server and also on the Cloudflare dev domain it works fine. i.e. the page starts loading immediately and the slower component appears via suspense after about two seconds. But on the production domain the page does not stream and appears until all the data is loaded after two seconds. After gradually disabling all WAF, caching and optimization settings, I found that streaming only works when I turn off my Page Rule: Cache Level-> cache everything. Can anyone explain me why? ...

Connecting Cloudflare accounts to GitHub organizations

I have multiple Cloudflare accounts under my Cloudflare profile and multiple GitHub organizations. One organization is similar to an agency - another is for a brand - but the software gets deployed to the brand much of the time. When I try to add another GitHub account to my cloudflare account, it gets an error: "An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000)"

rate limit pages functions?

How do I set up rate limiting for a pages function? I tried setting up a rate limit rule for my domain -> waf -> rate limits, but it is not working. Appreciate any and all help!

Deployment bugged after moving Gitlab repository

I have been using pages over the past few months. Been a great experience so far! Just today I moved the Gitlab repositories the pages code is is hosted in to a new subgroup in our Gitlab organization. When I try to programatically create a new deployment, either through the REST API or a webhook, I get an error that the specified branch could not be found. The same error appears in the pages UI when attempting to change certain settings. I could probably fix this by deleting and recreating the respective Cloudflare pages, if possible, I would rather not though, since quite a few settings depend on those staying up. Is there a way to fix this issue without recreating the Cloudflare pages? To be clear, I don't know for certain moving the repositories caused the issue....

[Nextjs 13 App router] Routes without Edge Runtime

When building my app locally with pnpm dlx @cloudflare/next-on-pages@latest everything builds as expected, however, doing so on Cloudflare results in an error after the build has completed stating that my server components require export const runtime = "edge"; which has already been set in all of them and confirmed by the local build. I am using build system v2 though I don't believe that should impact this as I would require a newer nodejs version regardless of the underlying runner operat...

`unstable_dev` with Cloudflare Pages

is there any way to use unstable_dev with Cloudflare Pages yet? when testing a svelte-kit build, i tried ```ts siteServer = await unstable_dev(path.join(SITE_DIR, ".svelte-kit", "cloudflare", "_worker.js"), { experimental: { enablePagesAssetsServiceBinding: { directory: path.join(SITE_DIR, ".svelte-kit", "cloudflare"),...

How do I update a project's repository after changing the name on GitHub?

Hello, I have changed the name of the repository that was linked for automatic deployments on my pages project. The integration has stopped working when I have changed the name and transferred the repo to another organization. I have updated the integration permissions to allow access to the new repository, but the pages project on Cloudflare is not updating and I cannot find a way to re-link the repository...

Taking advantage of brotli compression

I have a pages site that I have a pipeline configured to pre-compress assets with the highest levels of gzip and brotli compression, and I want to serve those with cloudflare pages. Is there any specific configuration I have to set to serve those if the user agent can receive it? thank you!

How add headers to static assets?

I have tried _headers, functions, and _worker.js. They works only when there is no static assets matching the request URI. How to add headers to static assets?

Failed: an internal error occurred

Hi, I'm getting the above error in the logs occasionally when building my app, it will sit for half an hour or so and then fail. Other times it builds fine though. Any ideas what could be the cause? Deployment ID: a8d582e2-1085-443b-9a5c-21c62835baaa...

How do I use the wrangler cli to write to a local KV instance?

I gathered that local workers cannot access any KV resources remotely. However, I have a lot of KV items that I publish to prod using wrangler kv:bulk. Is it possible to use the same wrangler kv:bulk command to write to the local KV storage? Alternatively, can I use the API? What would be the hostname?...

Doc: Add a custom domain to a branch. Not working.

Link: https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/ When I find CNAME record with the name staging and change the target to include your branch alias. (mydomain.com -> staging.mydomain.com)...