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

Not able to add Custom Domain to Pages

Whenever I try to add my Custom Domain (purchased through Cloudflare) to my Page, I get the following error: “Unable to edit this record. It was generated by Cloudflare and can be modified in your Registrar configuration.” But I’m not able to modify it since Cloudflare manages it. The Page deployment works fine, and I can access it online....

UNEXPECTED END OF JSON

Hi, Whenever I make API calls through my next js server hosted on cloudflare pages, I am constantly receiving the error Unexpected end of JSON input when reading await response.json(). I dont know if my servers are being overwhelemed, the api request always works because im testing it on postman. There is something going on, when sending requests from the api. For more info, the request is being sent to my external heroku server. any ideas?...

daisy ui styles not applying on cloudflare built deployment

I built cloudflare pages app (using this template https://github.com/yusukebe/cloudflare-d1-drizzle-honox-starter/blob/main/README.md ) , and added daisy UI. My tailwind css styles are being applied, but not daisy UI. any clue?

Resource temporarily unavailable (os error 11)

URL: https://insights-frontend.pages.dev/ Account ID: d2db7287e9682238771b96cf6ff8b2cb Deployment ID: 0daf2083-acbf-4f8d-ba78-c7bf3b45c5fe On a pages project, I keep receiving:...

Question about Cloudflare Cache Status

My websites home page needs to get the user state and fetch some things about the servers the user is in and the status of the sidebar buttons (sidebar buttons are disabled if the users authorization is none or if it is invalid) My home page is returning a CF Cache Status of DYNAMIC I am wondering if the fact that my home page fetches user state is making it so the Cache status is not HIT...

Custom domain without <myproject>.pages.dev?

I’d like my Pages app to only be associated with my custom domain. It seems possible in the docs, https://developers.cloudflare.com/pages/configuration/custom-domains/, but in practice the only option is setting up a cname. Is this true? Even for domains where Cloudflare already has full control?...

Dashboard missing preview env variables?

Hi I seem to remember that in the earlier version of the dashboard there was two categories for env variables one for preview and one for the production deployment. Now in the new dashboard I am not able to find the preview variables, only the production ones. Is this expected or am I missing something? Is there a way to view and change the preview variables in the dashboard?

how to create a webpage

Hey, sorry for the dumbness butt im kinda new to cloudflare and i dont know how to create a webpage on cloudflare ( if it is acctually possible to do so)

cannot change production branch on new dashboard UI

The dashboard UI for pages changed a little recently, and I can no longer find the way to change the default production branch. My repo has master as the prod branch, but I think CF is looking for main. I can’t figure out how to change it now

(Sveltekit & Pages) Streamed PageServerLoad Data Not Behaving as Expected

Attached is the code I have written. This seems to be correct, but when running in wrangler pages dev, the response of the entire page is awaited by this promise. Does Cloudflare Pages support the Sveltekit Streaming? Thank you 🙂...

Connect pages directly with R2

Hello, I'm interested to use R2 to store frequently changing data and fetch them on the client side in a project hosted on a cloudflare pages. I read about using bindings to connect R2 with Cloudflare pages but I didn't understand if I still need a worker in the middle....

"Unknown internal error occurred." if binding R2 buckets to pages

Hi, it seems I'm unable to bind R2 buckets in pages. Removing the binding eliminates the error, but I'm not sure why

Uploading takes much longer than before in the Deploying step

We're getting many Failed: build exceeded the time limit and was terminated. errors recently because uploading assets in Deploying to Cloudflare's global network takes more than 15 minutes and then our deployment is failed. One week ago, it took around 10mins to deploy our assets in Cloudflare's global network. I submitted a request for our increase build time but don't get answer back yet. What can I do here to make the deployment more stable? - Deployment ID: c7233c6a-c0c7-4beb-b7ec-37620ff8a36e - Account ID: 7d40f588c5aaf7bd1c9fa14eb411d5e3...

Submodules with Gitlab

Hi, What's the right way to manage permissions, submodule URLs, HTTPS vs SSH, etc. for a monorepo / repository with submodules? I created the project in the pages dashboard using the default method of OAuth and then scrolling through all the repositories and selecting the one containing my site. In theory this means that cloudflare has a token with permission to access all of my account. Now I'd like to add a submodule to the build process that's in a sibling directory of the site's repo. Unsurprisingly without further configuration the build fails:...

Postgres.js not working in next.js

``` ⨯ Error: The edge runtime does not support Node.js 'perf_hooks' module. Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime at Object.get (D:\survivalytics\my-next-app.next\server\edge\chunks\ssr\node_modules_next_dist_esm_server_web969587..js:59:19) at createSocket (D:\survivalytics\my-next-app.next\server\edge\chunks\ssr\node_modules_postgres_srcb4bde1..js:808:228) at Timeout.connect [as _onTimeout] (D:\survivalytics\my-next-app.next\server\edge\chunks\ssr\node_modules_postgres_srcb4bde1..js:962:35)...

Some users cant access the website

So this is a weird error im not really into networking so I dont really know whats going on and cant find anything either. I bought a domain from porkbun and added cloudflare with full SSL, I was going to buy a cpanel or sum but i realized I could just use the page from cloudflare since all I need is a simple portfolio website. I uploaded the page and everything works fine for most of my friends who tried to acess the website but some of them that were at university or hospital couldnt acess it with WiFi, if they use mobile data everything works, home wifi also works, i'm aware that some public wifi block a few websites and all but im concerned that the employers will also have this issue and not be able to see my portfolio....

Error connecting to git account

Cloudflare Pages was unable to be installed on your GitHub/GitLab account. Please attempt to fully uninstall and reinstall the installation. Can anyone help?...

Werid build error

Hello, i host a large website via cloudflare pages because its fast and stuff but recently when building my project it throws a ELIFECYCLE  Command failed with exit code 2. after computing gzip size... for some reason, i know its not vite because i can build it fine locally in the cli