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

Browers returns 'This site can’t be reached' after successfully deploy.

I'm new to cloudflare pages, just successfully deployed a nextjs project to pages. But when I try to access the page, it shows site can't be reached. Any help would be appreciated.

"Fail open" question

If "Fail Open" mode is active (Pricing | Cloudflare Pages docs)
Once the daily request limit has been reached, Projects in fail open mode will bypass the Function and prevent it from operating on incoming traffic. Incoming requests will behave as if there was no Function, and pass through to the site’s static assets. This is the default configuration for all Pages projects.
...

Do middlewares are counted as functions?

Hi everyone, I am new to cloudflare and trying to learn pages. On the pages websites, it is said "On both free and paid plans, requests to static assets are free and unlimited. A request is considered static when it does not invoke Functions." https://developers.cloudflare.com/pages/functions/pricing/#static-asset-requests ...

Getting 404 on preview website (solved: was a file name issue)

Hi all, first time using pages and I am having trouble getting it to do anything. I have a html and a css file (these work fine locally). I used the direct upload to add them and deployed. The deployment says it is running, but if I follow the preview URL I get a 404. ...

Slow upload / times out

Our site is static gen, build roughly takes 8 minutes and spits out 15.000 files, now the upload is so slow that it will cancel after 35 minutes total build time. Total size of the build is around 3gb. Anyone that ran into similar issues? I assume upgrading to a pro account will make no difference here correct?...

Map subdomain of main site's domain to branch deployment

I have a project at project-name.com and a branch deployment at preview.project-name.pages.dev. I'd like to make this specific branch deployment accessible via preview.project-name.com. Is that possible? What I've tried: I added preview.project-name.com as a custom domain, and then modified the CNAME record to point to preview.project-name.pages.dev instead of project-name.pages.dev. But it still takes me to project-name.pages.dev; I'm not seeing the preview deployment version....

I can't get code mail to find the password

I can't get code mail to find the password My mail is baejune9@naver.com Please tell me the solution...

functions help

hi I need help with deploying the functions in pages, my script is suppose to dynamically change the contents of my .json but its not doing as described , can someone take a look for me help work a solution ?

Trying to enable Images getting Internal Server Error (Code: 1000)

Cloudflare enterprise account, trying to use the Images feature for the first time

Getting this error when trying to deploy svelte-kit following the guidance provided by cloudflare

00:50:19.053 npm ERR! code EBADENGINE 00:50:19.054 npm ERR! engine Unsupported engine 00:50:19.054 npm ERR! engine Not compatible with your version of node/npm: @eslint/config-array@0.17.1 00:50:19.055 npm ERR! notsup Not compatible with your version of node/npm: @eslint/config-array@0.17.1 00:50:19.055 npm ERR! notsup Required: {"node":"^18.18.0 ^20.9.0 >=21.1.0"}...

Defining Multiple Content-Security-Policy-Report-Only in Headers

Hey all, I'm defining a _headers file for my Cloudflare page, but wanted to break up Content-Security-Policy-Report-Only over multiple lines since it is getting pretty long. I wanted to take advantage of https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#multiple_content_security_policies and have something like...

cloudflare page to page bindings?

i'm using a cloudflare pages app to deploy workers so i have git integrations and PR deploys, but i see no way to bind one pages app to another? is there any way around this without having to downgrade to the basic worker experience? https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/...

Internal build error - says to contact Cloudflare Support

Here's the build output from Cloudflare's pages deployment: ``` 15:35:12.043 Found _worker.js in output directory. Uploading. 15:35:13.276 ✨ Compiled Worker successfully 15:35:13.349 Found _routes.json in output directory. Uploading....

Deploying Next app

Hello guys, im uploading my first Next website on cloudflare pages. I have my repo on github with no errors and then I tried to push it to cloudflare. I am getting this error and I have no idea where to set up flag. Thanks a lot.

HELP !!! Deploy existing remix web app to cloud flare

I have a remix web app that's not using any templates. I can't deploy it successfully on cloud flare and I can't seem to find any solution on it. Please help 🙏 Here's the GitHub repo ...

Is there any way to access a pages deployment without passing first from the cloudflare CDN?

My issue is that the cloudflare CDN has a 100 second timeout and I need a long running backend task. Pages doesn't support crons or queues, so I can rely on an external cron tool, but I would need to connect directly to the worker skipping the CDN

Reference architecture for a pages app with background tasks

I'm looking for a reference architecture for an API / website that also has background tasks, such as queues, cron jobs, etc. Is there a recommended way to build such an app? I understand that I can use a separate worker and share the same queue (but presumably not in the same codebase?), or I can drop down to "Advanced Mode" with _worker.js, but what's the recommended architecture?...

Deployment via API

Does anyone have any experience with the Cloudflare API, I'm interested in the possibility to upload a deployment for Workers & Pages via API. This is where the API calls are made in wrangler https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/api/pages/deploy.tsx...

How I change Change My Website FIles In Workers And Pages

How I change Change My Website FIles In Workers And Pages i cant see any option

Solid's `clientOnly` only works with "Development Mode" enabled [solved]

Steps to reproduce 1. Clone this minimal repo https://github.com/AlexErrant/solid-start-cf-basic 2. pnpm i && pnpm build && pnpm run deploy 3. Observe that it works on the whatever-name.pages.dev domain...