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

Programmatically deploy to Cloudflare Pages using API

Hello, I am trying to use the api to deploy some static files(without git project, I want direct upload). Wrangler works fine however I need to do it using the api. At first I tried using the curl request the docs propose to create a project: ``` curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/pages/projects \ -H 'Content-Type: application/json' ...

Build errors deploying Sentry in a SvelteKit app on Cloudflare Pages

I followed this to add Sentry to a Sveltekit app which is deployed with Cloudflare pages: https://docs.sentry.io/platforms/javascript/guides/cloudflare/frameworks/sveltekit/ The doc is specifically for Cloudflare Pages. Locally it works fine, and I can get errors to show in Sentry. But deploying it with Cloudflare Pages, I get build errors like below. I have tried using both of the suggested compatibility flags mentioned in the docs. Appreciate if anyone can help point in the right direction!...

Build cache not working in Astro static projects

I'm doing some tests, changed the folders structure and the root folder, but it keep failing to upload build cache. Can anyone check whats wrong, please? Here is the deployment ID: 6d695a2f-07c2-43c1-973c-99708825d9f4...

Error rendering dynamic pages: Internal Server Error

I get this error when trying to render a dynamic page on Cloudflare workers. [wrangler:info] GET /forms/public/superteam-feedback-35aed5d7 500 Internal Server Error (11ms) ✘ [ERROR] Error: No such module "next-on-pages-dist/functions/forms/public/[slug].func.js". ...

"There is an internal issue with your Cloudflare Workers & Pages Git installation"

Hi, I noticed no new deployments have happened since a few days ago, so my site is missing updates that should be in place. I've seen internal errors before, which is a bit of a pain, but those have generally been transient, and admittedly I am on the free plan. Currently however, if I visit the dashboard I see this message:...

500 Server error... but not for everybody

Hello all, I have a problem with the production of this website : https://launchbase.fr Maybe you have a 500 visiting it, maybe not, and I have no idea why...... ...

pages product deploy new version old version resource not found

I had a pages now deploy product env and deploy success User access old version resource , cloudflare 302 redirect to new version resource, But frontend only allow receipt 200 status, not 302, frontend is error I have only refresh frontend pages, website is ok...

Failed: an internal error occurred. If this continues, contact support: https://cfl.re/3WgEyrH

Been getting this for a day now. At first I thought its because traffic is 'rerouted' in my region as mentioned on cloudflarestatus, but its still not working. Any ideas? The builds have been deploying fine for days.

Path alias not working

(Edit: i wrote 6 messages since discord didn't allow me.) import path alias is not working with the cf pages im using vite with react tho interesting part is i can get succesfully build with or without cloudflares vite plugin here is the error: ``` 01:47:58.176 Executing user command: npm run build 01:47:58.640
01:47:58.640 > fluctur-dashboard@0.0.0 build...

NextAuth v5 req.auth Undefined with wrangler pages dev on Cloudflare Pages, Works with npm run dev

I'm using NextAuth v5 with Next.js 15 for authentication with JWT strategy. Everything works as expected when running the app locally using: npm run dev The req.auth object in my middleware is properly populated after login, and auth.user contains the expected user information. When I run the app using: wrangler pages dev...

Clear cache for *.pages.dev domain

We recently switched away from Next.js and it appears that Next.js generate html files for each page route and our new framework does not, this create a problem when the browser first visit the route(using the bookmark or direct link) it will serve the legacy Next.js built html file, instead of the SPA index.html which should be responsible for all routes. Given that we use the *.pages.dev domains for our development purpose, we need a way to purge the cache for the specific pages project. Appreciate your help....

unable to upload files

my acc id: ee789ff6bd417cee18d8e48f0ed90e54 https://chbl-training.pages.dev/ Hi, I previously posted in a different help thread and found this one is more better for my case. I was wondering why i couldn’t upload any files for when I wanted to deploy another page. I was able to successfully upload my files for the first page deployment but this time, i could not upload the files and if i did upload it, the deployment would not be complete. it would give the message that my website does not exist....

Build cache not working in Astro static projects

We have a some projects in CF Pages using the same Astro static generation project. Even the "Build cache" is enable in every project, the build logs says its not beeing used: ``` 2025-06-26T15:22:55.845054Z Using v2 root directory strategy 2025-06-26T15:22:55.87282Z Success: Finished cloning repository files...

Pages routes that not exists anymore are being served

This routes are acessible even with 200 curl response: https://mixvbs.com/ar-tc-cencosudtc-p1/ https://mixvbs.com/us-cc-citirewardscc-p1/ But they doesnt exists anymore. The project is generated with static files by Astro to Cloudflare Pages....

billing

I noticed there is an unpaid order showing in my Cloudflare dashboard, but I cannot find any way to pay it. I have checked the Billing → Orders section, but there is no “Pay” button or link. Please let me know: 1. What this unpaid order is for 2. How I can pay it or cancel it if it is not valid...

Infinite Redirect Loop from Worker to Page.

A day of debugging with AI so far.

Question about amount of Pages concurrent builds

We had Pro plan with 5 concurrent builds. still, it was not enough and we changed it to Business plan with 20 concurrent builds. We changed plan for almost two weeks ago and still we have only 5 concurrent builds, can someone explain why?...

Cloudflare Analytics script cannot be removed

I have disabled the analytics entirely. Yet the script is automatically injected by Cloudflare still. How do I get rid of it? Redeployment does not help. It is not part of the index.html either....

S3 Api SignatureDoesNotMatch

Writing a script that needs to upload some files to an R2 bucket at build time (so really this is just running as normal nodejs). Trying to use the S3 API. Code is really simple, basically straight from the examples: ```typescript...