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

Disable preview for pages

Hi, is it possible to disable the "preview" on pages ?

How to skip or customize pre-build cmd when using mkdoc

My doc and project is built on mkdoc. when I use git integration, it automatically pip install . whole project first and then mkdoc build. Since my c++ operator need a lot of stuff to compile, how should I skip it, or only use pip install .[doc]? Thanks!!

Caching Dynamic and Static content

How do I set up dynamic cache for pages without it turning static? I use a currency converter on my site and cloudflare serves already cached pages for visitors whose local currency is GBP for other visitors whose local currency is USD. #pages-help

Transfering domain from one.com to cloudflare

Im currently transfering a domain from one.com to cloudflare and is wondering if exactly all dns records should be transfered to keep their current services working.

Cloudflare Pages Cache / and cache warm-up

The Essence of My Problem I have a website (built with Astro.js + WordPress) on a domain, and I’ve set up caching rules (Cache Everything). In the middleware function, I added the following logic to cache HTML pages, as they are not cached by default: `newHeaders.set( "Cache-Control",...

Environment variables dissappeared ??

I had around 15 env variables filled on preview deployments. I pushed new code to the preview build process and all of the preview builds were suddenly failing. After checking the build data i noticed that the ENV was empty. So I checked the Variables and Secrets for my preview deployments and all of the variables are gone. Could I ask what happened or how can it be restored?

Security: ZAP is flagging Proxy Disclosure as an issue. Can I remove these headers?

Can i remove these headers? I understand that are relatively important in that they are used by the CF dashboard so I'm wondering how to balance proxy disclosure with the security of the following Server; CF-RAY; Report-To;...

how to change sub domain

deneme-7wl.pages.dev this is my web site that i created with github and cloydflare pages. How to change it as mustafaduran.pages.dev...

Deploy Issue

I am getting an issue when deploying my next.js project.

Peer Depency issues using nextjs app router

I have deployed my project on cloudflare pages, i have got this issues, i need your support to resolve this issues, like in here when i apply the npm run preview command then the next on pages will used the vercel command, is there is any way that i will make it to change the vercel build command like by default the cloudflare used the vercel The script excute like that...
No description

SSR Nuxt app returning 500 globally when deployed, working locally.

The build seems to go through without issue, and isn't logging anything that catches my eye. We currently deploy the same stack statically with nuxt generate and it works, but when updating to ssr and running nuxt build, we are seeing 500 errors. Here is a build for reference: https://feature-ssr.rhone-nacelle.pages.dev/. Any ideas welcome. I have tried a few different configuration settings without any luck. Function logs aren't super helpful, but this is what I'm seeing: {...

Cloudflare Vite Plugin is on one port but application thinks it's another in local dev?

It was difficult to fit the information all in in that title... I have a React Router V7 application which I've set up with React Router's own Cloudflare template. It all works and I can deploy it. I've tried to then integrate Clerk authentication in, but because in dev mode it seems like there's some layers of proxying going on, the app itself thinks traffic is coming to it from a different port to what Vite is telling me (and expecting for resources to work properly) in the browser. Clerk picks up on this other port (i.e. not :5173) and sets the redirect_uri to come back to my app on this other, random port (it does change each time). When I access a page in my app it checks the auth, so this happens every time before I can even load into my app at all....

Payload CMS on Cloudflare Workers/Pages

Is it possible to host a NextJS app with Payload CMS? It seems to have several node dependencies meaning I can't use it. Is there anyway?

Deployment previews from GitHub forks

Hi team, Thanks so much for Cloudflare Pages - it's a great product. The known issues page talks about the only problem we have had with it so far:
Commits/PRs from forked repositories will not create a preview. Support for this will come in the future....

When will Pages support Node 20+?

Don't see any option for a version that's greater than Node 18, which is causing a bunch of our code to fail since we've been working with 23 locally. Any plans to support later Node versions for Pages?
No description

Increase limit on the number of pages projects

Hi! I requested today (25 march 2025) through the google form an increase in the number of pages projects that I can create. My account id is: 86d317aa260f4319163d235ae8b74699...

Activate www for pages.dev websites

It seems to me that pages.dev domains are only reachable without www, else the following error appears. Is it possible to access the page also with www or do I need my own domain for that?...
No description

Speed brain on pages.dev websites

I've a domain which is a pages.dev internally. It's fully static and can benefit with speed brain, however two issues are in the way - 1. html is not cached by default it seems, leading to a 503 on the prefetch request. 2. I see a caveat in the speed brain docs - "Currently, Speed Brain is not compatible with websites that use or rely on pages.dev". Any explanation why this is the case?...

In SvelteKit do I have to use `wrangler dev` instead of `vite dev` to make service bindings work?

I have two SvelteKit projects, both running on Pages. Project B has a service binding to Project A but it only works if Project A is running the preview script (which contains wrangler dev), and not when using the dev script (vite dev). Is this a "hard" limit or is there a way to make service bindings work with the "normal" dev mode?