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

Combine Cloudflare for SAAS with Cloudflare Pages

What is the right way to combine these two services? I want to manage custom domains through my domain panel (ssl-tls/custom-hostnames). From my panel we have 100 custom domains included and we will pay $0.10 for each additional domain! In Cloudflare Pages if I go over 100 domains, I need to hire another plan! Can I continue using Cloudflare for SaaS?...

Middleware forward headers to other functions

Hello, I am building a next application and I have a middleware where I add the href in a header. Then I access it in some server components. It's working correctly on Vercel and locally but on Cloudflare, the header is not forwarded to the server components. Do I need to add something else? Or do you have another solution? I want to access some query params in a nextjs layout but from what I know it's not directly possible right now. ...

gatsby build fails as gatsby command not installed

I'm trying to deploy a new gatsby project and the build are failing as the gatsby command is not found. I have the project settings set to a gatsby project as the docs mentions. ```09:21:05.344 Cloning repository... 09:21:06.234 From https://github.com/anuaimi/travelplans 09:21:06.235 * branch b241af46aef5e4bccb182515d4b380355c1cfcb6 -> FETCH_HEAD 09:21:06.235 ...

Pages Function naming causes failure

hq-simple-astro-spike.pages.dev, Account ID: 9f4ca528def6cd26be618a8891cc757e, Deployment: 0406c190-2493-4e13-9e5d-9cd4e3159036 Navigating to https://0406c190.hq-simple-astro-spike.pages.dev/helloworld, I get: Error 1101 Ray ID: 7e8756453bbe1567 • 2023-07-18 02:36:25 UTC...

Deploy to pages specifying production or preview from a gitlab CI/CD pipeline

We have a CI/CD pipeline that publishes our repo to cloudflare pages from a private gitlab, however I want to be able to select preview or production using gitlab, not the default system where it uses preview builds for extra branches until you merge into main. How do i achieve this? Is there a way to pass an environment variable from gitlab to cloudflare pages to specify which environment to publish to preview or production?...

Clerk Sign out issue with Cloudflare Pages Next.js

Following up from here for record, https://discord.com/channels/595317990191398933/1129712984084713472/1129717047312531518 On vercel I get status=401, It occurs when clicked on signout, but it does sign me out fine (log error don't cause any problem). Cloudflare is bit shaky though & I can't completely figure it out....

"Variant Also Negotiates" When integrating ezoic to Cloudflare Pages.

I tried integrating through cloudflare, but that didn't see, to work, so I integrated through nameservers.

GitHub integration not working

Hey there, I would like to start deploying on CloudFlare Pages a new project we are working on a NuxtLabs, but it seems I cannot use the git integration for it. I tried to uninstall and re-install at least 5 times, but still, nuxtlabs org does not appear 😦...

Adding custom domain with to cloudflare pages with åäö in it (IDN)

I am trying to add a custom domain to my cloudflare page. But it is an IDN domain name, i.e. it has local swedish letters in it. When I press "Begin CNAME setup" I get an error in the cloudflare interface: "An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000)". ...

Pages - Builds per month

I have been trying to increase # of builds per month for pages since months. No response from increase via form request. How to get it done guys?...

KV access in a Sveltekit dev environment

Hi there. Appreciate the help in advance. I'm having the worst time trying to figure out if its possible to use a KV store in a dev environment. I'd like to use a full-on test KV where I can save keys and such. It seems everything that I've tried, platform.env on a server endpoint on my Sveltekit app is only available deployed in production. I'm using npx wrangler pages dev .svelte-kit/cloudflare once built, with
```toml kv_namespaces = [ { binding = "test", id = "76n8s756fi7sd56fn", preview_id = "7sdtn6fi6s5dbf76s5ndf" },...

Weird errors.

We have a simple static-upload site sitting on pages with the main page being at https://widgets.casterlabs.co/caffeinated/loader (casterlabs-widgets.pages.dev), our users keep reporting that they're getting "Pages had an internal error, is this persists please contact support!". Now this is weird because it's a static site and should just be served without any pages overhead and we haven't made any changes for 4 months; tips are appreciated. Last deployment: f3e84183-b45e-4a26-b033-91da0f819c65 Account: efdc5258818b25316c9f32128367def1...

Redirects non-www to www

Hi team, we just launched a project on www.DOMAIN.com, but cant seem to figure out how to redirect the non-www DNS traffic to the WWW version - any advice?

Only a single github repo shown in new Pages Project

Hi there, I have previously create a pages project and bound it to one of my repos on github. I want to add another, but in the 'Create Application' - it shows my github account, but only shows a single repo that is already in use, without letting me select any of the other repos. Is this a bug, or are we only supposed to have a single pages project? ...

Is there anyway to upload source maps to Sentry on pages build?

We have a Nextjs static website that uses CF pages and have Sentry for error tracking, since our project use TS is there anyway for us to upload the source maps to Sentry on next build on CF pages. (According to Sentry docs here , here, Sentry webpack plugin automatically update source maps on next build) As I looked in to the current Sentry pages plugin it seems to be for workers / functions....

Error: Exit with error code: 1

I am trying to deploy a VitePress page, but I am receiving this error: https://paste.valhalladev.org/wahogoweye.bash If I run the same code on GitHub Pages, it succesfully builds and launches the page. I have attempted switching Node.js to v16 as per VitePress documentation, but I receive the same error. Have attempted with NPM too, same issue....

Clean old builds

Is it possible to have cloudflare automically delete old builds/deployments once the newer version is live?

Cloudflare failed to build hexo blog

mytestblog-ab6.pages.dev 6bee4ba yiyang88663391 LOG:...

Pages pricing

Hello I am quite confused by pages pricing. On the pages.dev site there are three options for free, 2O$ and 200$. However in my cloudflare dashboard in the Workers & Pages section on the Plans page there are only two options, one free and the second one for 5$ + monthly usage. What's the difference?