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

HSTS on Pages

Hi, Is there a way to set the HSTS header on a Pages site? Our domain isn't managed by cloudflare (so most of the general cloudflare settings aren't available), but the website is deployed through Pages, so uses Let's Encrypt. When I google it, I mostly get back results relating to cloudflare sites other than Pages. I have all the relevant redirections set up on our own server for when anybody doesn't visit www. explicitly. Thanks...

Is it possible to build Hugo with Caching Files?

https://gohugo.io/getting-started/configuration/#configure-file-caches
Let's assume I have a million static page build by Hugo and I don't want to wait for 5 minutes every tiny update (doesn't make sense right?), can I do caching files for build in Cloudflare like I did in my local machine? Edit:...

Page Content Missing

I migrated a website to Cloudflare pages in June, one page was working fine then shows as functional but this is what comes up. It worked for over a month then started this. This is an image of the page.

How to rate limit NextJS-on-pages requests to different API?

I have a nextjs project that makes server-side requests to a different API I have protected by cloudflare. I want to create a cloudflare rate-limiting rule for some of my API endpoints, but noticed that the IP address cloudflare was picking up was the pages-worker IP instead of the end-user's IP....

Unable to connect to Github

I've connected before. I tried uninstalling the Github App and reconnecting, but got this error. Really need help because otherwise there seems to be no way to deploy pages...

Nitro build hangs after Nuxt 3.13 upgrade

We use Nuxt (therefore nitro), something in the recent 3.13 update broke our build. Now it gets stuck, seemingly at the last stage before it prints "Finished"... ```log 15:42:35.349 [success] Server built in 24226ms...

Failed to publish your Function. Got error: Unknown internal error occurred

Trying to deploy my pages site with a service worker binding I am receiving this cryptic error message. I think the deploy id is bb0e0b15-0ff9-48a6-aa0c-d9d62a16d7b6

Create CAA record on a free plan? (pointed to as CNAME)

I've red following information at https://sslmate.com/caa/about: "If a domain name is a CNAME (also known as an alias) for another domain, then the certificate authority looks for the CAA record set at the CNAME target (just like any other DNS lookup). If no CAA record set is found, the certificate authority continues searching parent domains of the original domain name. For example, if blog.example.com is a CNAME for blogprovider.example, then the certificate authority looks for CAA record sets in the following order:...

Uploaded domain to cloudflare, how can I apply it to my page

Hi, I have working new domain on cloudflare and trying to connect it with my workers/pages. How can i achieve it?

Asking for help, how do I increase the rust environment before the page is built?

I have a little idea and want to build WASM in my front-end project. Is there any way to cache the Rust environment?...

`wrangler pages dev` appears to not be performing a tree shake of the SVG's in my icon library.

I'm using svelte-kit with the pages adapter. I also imported a VERY big SVG icon library called 'lucid-svelte' which promises to tree shake unused SVG dependencies. When I npm run build all appears to be fine with a dev server. I also deployed project to cloudflare with wrangler pages deploy and all appears to work well in that environment. My issue is when I run npm run build and then wrangler pages dev on the project, the build appears to work, and the dev server is spun up, but when I make a request to the dev server, the request hangs for more than 60 seconds, and then after it responds, the requests come through quickly. When I remove this SVG library the problems go away with wranger pages dev....

Error using API Create PagesProject with pulumi - Err 'You must set a production branch.'

Calling this from a monorepo. I want to use pulumi to create a pages project/update it ```ts...

SvelteKit first load of server-side rendered page always fails

Hi, when I open a server-side rendered page of my SvelteKit app hosted on CloudFlare Pages in a new session, the first load always returns the sveltekit error page with error 500. I do not know how to debug this error since there is no error in the browser console nor does the cloudflare dashboard show any errors.

Email Routing "Disabling" bug

Hey, I am trying to authorize DNS records from Zoho to connect with email servers. route1.mx.cloudflare.net, route2.mx.cloudflare.net, route3.mx.cloudflare.net need to be changed. But I get an error message saying "this DNS record is managed by Email routing. I must disable Email routing on my domain first." However, it seems like there is a bug in the Email Routing>Domain section where I'm trying to disable using the settings (3 dots) but nothing happens when I click "disabling"....

I'm using Bun, it's specified on package.json, but pages tries to download with npm

Hey, I have a NextJS website that I'm trying to deploy to cf pages. I could to it through wrangler, but I want to have builds on pushes, so I want to build through cf. I'm using Bun, and it's specified in the package.json, but for some reason, cf decides to run npm install, and fails. package.json ```json {...

Domain Problem

It's a new account. I encountered this problem in my main account, my friend's account, and the domain from Hostinger, but I have many other domains from Hostinger as well, and they don't have any problem like this.

how do I configure DNS records for a pages domain

I do not have any custom domain. I just want to add Resend's DNS records into my existing <app>.pages.dev domain to integrate email utility

It becomes like the module is not included, and it becomes module noand it becomes module not found.

I'm trying to create a site that uses markdown in Nextjs, and the npm run dev dollar works well, but I'm told that there is no module in the cf pages after committing. What should I do? - Deployment ID: a1e42eae-c2a1-425b-9b3f-5f9330f6cf54 - My page: https://markdown-test.sky-wiki-next.pages.dev...

I need waiting room feature as soon as possible, but I am having issues with upgrading to business

Hello all, I need to upgrade my account to business since we need waiting room as soon as possible. However, since I already had a pro plan that plan needs to get cancelled. I need immediate help with this, I created a ticket yesterday but no luck yet. How can I get immediate assistance? Thank you all.