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

Failing build

Hello, I am having a problem with building my app. After all the necessary processes are completed and the server starts, I wait for the build to finish. However, after approximately 30 minutes, it fails with the error message “Failed: an internal error occurred,” which is very vague.
No description

Issues with NuxtJS and Nitro Server with Cloudflare Pages

pages.dev domain: leagued-pr-web.pages.dev deploymentID?: 6090b376 AccountID: 6232ecf3b93920021dd5ddebe528f2bf Error from Worker Pages Dev ...: ```service core:user:worker: Uncaught TypeError: Object prototype may only be an Object or null: undefined...

522 Response from Custom Domain

I'm getting a 522 response after adding a custom domain to my Cloudflare Pages site. It's only been about 30 minutes, is this something I just need to wait on? Anything in particular that could cause the issue? My site, lilnonnas.com, is registered at porkbun. I updated the nameservers there to cloudflare's. I used the automated workflow to add the custom domain...

Images

I am an agency owner and I used CF Pages to host my clients website, my question is is there a limitation on how many images for example I have 100,000 websites and each website has hundreds of images? Does it breaks something or do I need to pay if the case is same with my example?...

Webhook

How to get video processed webhook from cloudflare?

how to integrate function in Next.js ssg app folder project

Hello ,i have write in api/route.js but the result will prefetched get same result using export const runtime = "edge"; can we have next.js without ssr but with dynamic api?...

A git repository for multiple pages? /workers-and-pages

I have only ONE code, in ONE repository on github. There are four (4) sites, with the same code, what changes is the backend, via environment variables. Is there a way I can point 4 domains, to put 4 sites online with different backends? The backend I provide in the environment variable, however it only has TWO (2) environments, production and test, I need more. How would I do this in cloudflare workers-and-pages?...

Cannot delete web analytics site

I accidentally added one of my pages site multiple times. Once automatically via DNS and the 2nd time is asking for a JS snippet. I would like to delete the 2nd site but the delete button cannot be selected in the web interface. Is there another way to delete the site?

What popular Javascript Frameworks do not use function requests when CSR is enabled?

What popular Javascript Frameworks do not use function requests when CSR is enabled? I do not wish to use SSR at all or minimize its use.

Build failing because of NodeJS Compatibility

Hi there! I'm getting the following error during build: ``` Add the "nodejs_compat" compatibility flag to your Pages project to enable Node.js compatibility....

High TTFB with Pages

Hi! So, there're kinda two issues here. First one is a high TTFB, averaging 500-800ms for a static Nextjs website....

Time zone on Traffic

Hi all. I see the time on Traffic tab is UTC. I would like it display my country time. How to see this
No description

Pages rate-limiting itself

When I try to deploy my site made with hugo I get an error saying [{"text":"Too many bulk operations already in progress. Please wait until one completes before retrying. [code: 10046]"}]. It seems like cloudfront pages is rate limiting it's own deployment? I'm using the automatic deployments via the cloudflare console. Seems like I need to wait like 30 minutes between each deploy. Deploy id: a9bda118-b306-41e3-ad3d-24f0550022a7 Account id: 13a3fb72ca14f42912ed874646eccf61...

purging cache doesn't work for pages

i've just pushed to the deployment branch which pages automatically rebuilt from, but it seems to be a commit or two behind (will squash in the future), even in incognito, i also tried the retry deployment button but that didnt work either but weirdly it was ok on the www custom domain so i deleted and added the base url (root subdomain), which fixed the issue in incognito, but it still happens otherwise, so i went to caching -> purge everything, even then its not fixed, what can i do now? if u wanna test its at https://lidnote.com (turkish) it looks broken like this to me...
No description

Adding cloudflare pages hosted site to Imperva WAF

Is it possible to add cloudflare pages site and linked domain to imperva waf? thanks

Using pages with a domain not hosted on CF possible?

I just found out that if we have a abc.com which is not hosted on Clouldflare cannot be pointed to Pages? I saw CNAME flatenning. But that would redirect www.abc.com to abc.com and will require additional settings at the domain dns provider. Is there a way to use Apex domain without domain hosted on CF? Any IP we can point?...

Vite + React + TS: Cannot find module or its corresponding type declarations.

I've verified that everything is imported correctly but I don't understand why it fails. ``` 15:52:47.870 Success: Finished cloning repository files 15:52:48.536 Detected the following tools from environment: [email protected], [email protected]...

How to host sub domain in sub directory?

Namaste🙏, I want to host my dashboard in example.com/dashboard. I have built dashboard in Svelte and I want to use some other website builder for main page (example.com). So, how can I do it in Cloudflare Pages? I am just beginner to Cloudflare ecosystem😀

How to pass secrets to Flutter web hosted by Cloudflare pages?

I have a flutter web which need to access supabase using the access key. How can I pass this key to the flutter web? My research shows two solutions: 1. use base64 (https://stackoverflow.com/questions/67964110/how-to-access-secrets-when-using-flutter-web-with-github-actions). This solution may not apply to my use case as I am not using github action to build my flutter web. Instead, I use peanut (https://hrishikeshpathak.com/blog/flutter-web-hosting-cloudflare/). Plus, base64 is not secure. I am not sure if the js compiled from flutter can still expose the secrets after building with secrets whether plain text or decoded from base64 encoding. 2. use page functions which seems to be more secure. However, I did not find doc for using page functions in flutter web app....