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 specify referer when sharing url

I have a simple react app deployed in Pages and was looking at the "Web Analytics" page in the dashboard. I am sharing this site in some discord servers and would like to have a way to know from which ones people are clicking the links more. I tried sharing the url with utm_source and utm_campaign but it doesn't seem to do anything....

Clarification on 25 MB Limit for Cloudflare Pages: Total Build Size vs. Individual File Size

Can I use Cloudflare Pages if the final build of my site exceeds 25 MB, while the size of each individual file does not exceed 25 MB? I tried it and it works perfectly, but in your documentation on the page Products -> Pages -> Platform -> Limits -> File size, it states: "The maximum file size for a single Cloudflare Pages site asset is 25 MiB." ...

React vite app, framework setting in build options not registering

I have a github repo with my app, locally it builds and runs, the build succeeds on cloudflare pages and gets published, but when trying to access the page I get the error
Uncaught TypeError: Cannot read properties of undefined (reading 'useLayoutEffect')
at vendor-BzD_WWop.js:9:4641
Uncaught TypeError: Cannot read properties of undefined (reading 'useLayoutEffect')
at vendor-BzD_WWop.js:9:4641
...

Cannot use "googleapis" package in SvelteKit route on Pages

In SvelteKitwith cloudflare pages, the recommended way to add functions is to use the normal sveltekit +server.ts route. This seems to work fine when i don't import any node modules, but I want to update a google spreadsheet from within a function. The issue is that when I import any "googleapis" the handler doesn't even run. I have the node_js compat flag set The handler gets hit (according to the wrangler logs) but immediately responds with this 500 error without running the function. ``` POST https://mysite.pages.dev/api/addEmailToSheet - Ok @ 5/9/2025, 12:49:28 AM...

Is there a way to remove a linked git repo from pages?

I want to completely manage CI/CD manually via Github Actions instead of relying on Pages's built-in CI/CD

Pages worker name uses env variables

How to assign value of worker name to read from env variables ? Like example CLOUDFLARE_PROJECT_NAME ?...

Using Remix / React Router 7 with the new CloudFlare Vite plugin

Has anyone been able to get a working local Pages development environment with Remix / React Router 7 and the new CloudFlare Vite plugin for Vite 6 leveraging the Environments API? For quite a while now, I've been experimenting with different ways to bring my local development environment more inline with the deployments to the Pages platform (i.e. to properly simulate things like _middleware and _headers). One pain point has always been the lack of HMR / love reloading during the development loop. After coming across this blog post from last month, you could say that I was more than excited to try it out! https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin/...

Cloudflare Pages Custom Domain Limits & Solutions?

Cloudflare Pages > Customer Domains has a hard limit of 250 custom domains, and cannot be extended. Now Cloudflare for SaaS has Hostnames where the Pro can add 100 Hostnames included, and 0.10 per additional hostnames. https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/plans/ What are the difference between custom domains and hostnames, are they the same?...

Pages Unable to create a project When Use direct upload

Deploy a site by uploading your project, error occurs: { "result": null, "success": false,...

My files arent up to date on my custom domain

i upload a folder with html and css files on the workers and pages but my custom domain site seems to not have updated the files even though on the pages.dev its fully up to date. Ive been making small changes to my website by removing page and then reuploading the files which has gone fine until now...

fetch-pack: unexpected disconnect while reading sideband packet

Using pages for a blog with 1300 posts and about 13k images. Repository on gitlab.com. It worked fine for a couple of weeks. Since about two days I'm getting failed builds occassionally with above stated error message. So far every time I clicked on retry the second time the build succeeded. Does anyone have an explanation on what that is and how it can be fixed?...

thinking about migrating to workers, but pages + remixjs is capable of API routes?

is there huge difference between pages and workers provided pages could also run server side code with remixjs API routes?

Worker functions

I am building a Vue app using pages but need access to other services. In looking through the configuration, server/index.js is the entry point for worker code. Is there a way to configure multiple files for my worker configurations so I can have the service split out. As an example, have one file for KV and another for D1 I have tried deploying a functions folder but nothing in that directory seems to get compiled when running 'npm run build'...

Duplicated headers

Hello, nuxt generate these headers: x-content-type-options: nosniff X-Content-Type-Options: nosniff And then I got these headers. some browsers are not happy with that. there's a way to fix that ? Thanks!...

ERROR: Multiple exports with the same name "onRequestPost"

I keep getting this error when trying to deploy the thing from a tutorial I followed. The code did have a mistake which I have since removed, but it keeps showing this error. Screenshotted is the code as it is currently. This is the tutorial I was using: https://developers.cloudflare.com/pages/tutorials/forms/ Page with the form: https://ghaztliousmothsart.pages.dev/GMSite/ContactMe I do not know how to get the deployment ID...

routing problem with angular ssr and cf pages functions

I'm trying to develop an Angular SSR website on Cloudflare Pages, with an API (OAuth-based) implemented via Pages Functions. The frontend should be available at: https://timelogs-stateless.pages.dev/ The API should be available at: https://timelogs-stateless.pages.dev/auth/login (via functions/auth/login.ts, etc.)...

getting error 'entry-point file at ".open-next/worker.js" was not found'

the build completes but i get this error message: 15:07:32.829 ├ chunks/261-03835c90a01407b6.js 45.8 kB 15:07:32.830 ├ chunks/a82cbd8b-5c8611866623da35.js 53.2 kB 15:07:32.830 └ other shared chunks (total) 1.92 kB 15:07:32.831 ...

Nuxt Hybrid SSR _headers/_redirects not working

We recently switched from a full Static website to a hybrid Nuxt delivery. While the routing and delivery are working as expected, it seems when we switched the _headers and _redirects files stopped working. I have uploaded the redirects to a bulk redirect for now, but would like to know if there's something I can do to restore the functionality we had before. Is this a limitation of Hybrid delivery? It seems the rules are getting read in, but for some reason aren't triggering. As an example: Header rules:...

Deployment failed without specific error message

After uploading from a folder (.svelte-kit/cloudflare) the dashboard shows the deployment failed but doesn't give any more info on what is wrong. deployment id: 3f15ee6a-0008-4da9-9f00-70833194c7b8 account id: 425a60570a40615f1fc36d8156044975...