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

How to Reconfigure Repository Location for a Pages Project Without Deleting It

Hi everyone, I'm looking for guidance on how to change the repository location for an existing Pages project without deleting the project entirely. I want to point it to a new repo or directory while keeping the current setup intact. Has anyone done this before? Any step-by-step advice or best practices would be greatly appreciated!
Thanks in advance!...

How can I get the ID included in the URL issued when deploying?

Pages issues a unique URL ({unique ID}.{domains}) for each deployment. Is there a way to get this ID? This ID and the versionId from the version metadata seem to be different. https://developers.cloudflare.com/workers/runtime-apis/bindings/version-metadata/...

Is there a `wrangler version` command for Pages?

Is there a wrangler versions command equivalent for pages? My use case is to have multi-stage deployments.

No Wrangler.toml found

out of nowhere i am getting these errors 02:00:59.187 Using v2 root directory strategy 02:00:59.210 Success: Finished cloning repository files 02:01:00.939 Checking for configuration in a Wrangler configuration file (BETA)...

Cannot create project

I tried creating a pages project but its stuck on this loading screen and never gets past this point. My other pages that are deployed work perfectly fine but I can't add any additional projects. Is there a limit that I don't know about? I only have around 100 projects deployed total - all subdomains and 1 main domain

R2 Image access issue

Hello, Can't access image in browser event image is available in R2 Storage. it working fine with pub.dev domain but not working with custom domain. when i hit with custom domain it's throws me 404 object not found. but with public domain it's working fine Please help me in this ...

Pages build ignoring configuration to use bun instead of node

While attempting to build an Astro project using Bun, I am getting a node version error which I did not get in the past. ```sh 22:52:01.393 Executing user command: bun run build 22:52:01.612 $ astro build 22:52:01.896 Node.js v18.17.1 is not supported by Astro! 22:52:01.896 Please upgrade Node.js to a supported version: ">=18.20.8" 22:52:01.897 ...

Subset of users having issue

Hello, I have a sveltekit website on cloudflare page, I have every few days a few users to complain to me that their page doesn't load at all. At first it was just IOS users in a particular region in the US where their nearest server was re-routing. Their solution was to use a VPN to get to another region and instantly it worked. But now I'm slowly gettings new case even on desktop. Usually after a few hours/day it get solved magically but sometimes comes back. I personally never had the bug myself. I'm a bit annoyed because it is super hard for me to debug anything and I don't know if it's cloudflare or a me fault. I tried to look on internet for similar problem but couldn't find anything. It would be super weird if I'm unique on this case. I would love to fix the issue but since I'm kinda out of idea, my last idea will be to move off cloudflare page and serve directly from my dedicated server through a simply caddy server. I don't expect much, but I would love to hear it's not just me and/or that's a known issue. Any idea is appreciated...

Ratelimits on wrangler pages deploy

Hi, we have an opensource repo that has 2 pages builds for every PR. Occassionally they fail with ratelimits. We don't have a lot of prs/deployments so we are not sure why they fail. ```...

Skipping build output cache as it's not supported for your project

I enabled Build cache in the settings, but in the build log I get the following message:
Skipping build output cache as it's not supported for your project
Skipping build output cache as it's not supported for your project
Please help me solve the problem...

Safari not honor with cache-control: public, max-age=0, must-revalidate

This may sound weird, Our developer team try to deploy new version on Cloudflare Pages but after post-deploy testing that some iOS/Safari Client can't download new chuck files while Chrome work well. We're assume that because Safari still cache our old version of index.html and lead to download the old chunk files which already delete out when deploy new Pages version. I try to see cache-control on our index.html is valid with cache-control: public, max-age=0, must-revalidate AFAIK; this means client will cache index.html but will revalidate every time when they refresh/access another page. But I don't know why this not for Safari? Any known issue or any suggestion to avoid this problem?...

Custom Domain Delay

I've pointed my pages application epoch-web-frontend.pages.dev to www.project-epoch.net and updated dns multiple hours ago. But it seems to still be in verifying state. Should I just be patient?...

Static workers handling of headers is different

I have a pages deployment with this headers file: Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-src *; child-src *; frame-ancestors *; That identical _headers file (auto-generated) is not working for a static pages deployment:...

Am I meant to create a new API token?

To find your Cloudflare API token, log in to the Cloudflare dashboard ↗, select the user icon on the upper righthand side of your screen > go to My Profile > API Tokens.
https://developers.cloudflare.com/pages/platform/known-issues/#delete-a-project-with-a-high-number-of-deployments I am trying to delete a pages project and that link states I need an API token. But I can't see any API tokens and creating a new one brings up templates. Which one do I need to create?...

Problem with "environment variables managed through wrangler.toml" and disabling that behavior

I have a "staging" deployment of my site and a "production" deployment. Both have different configuration. I set this up as two different pages deployments, since you cannot do this in a single deployment. However, I need them to be configured differently (i.e. talk to staging vs. production APIs). ...

Help with Domain on Cloudflare to my Unraid server with Cloudflare-DDNS docker?

I had this working once a long time ago now I can't get it working no matter what I try. Can anyone go with me from step 1?

Error 1015

Hi, I was finally banned because my Internet got stuck and flipped through the pages on the ficbook too quickly, how to get rid of this ban

Choose region to run pages in

I have a database in a certain region, and I want to run my pages functions in that region. I only see smart placement, but it doesn't let me choose.

How to ignore some files like Gemfile, Gemfile.lock

Some files not related to hugo (Gemfile. Gemfile.lock) is installed. Is there some config to ignore files?

Deploying an Astro app to Cloudflare Pages

I am setting up a new Astro app. This is the steps taken so far... 1. Run npm create cloudflare@latest -- mysite --framework=astro --platform=pages In the Astro install, I didn't initialize a repo and I just installed the "Minimal empty template"...