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

Sveltekit: adapter-static with Cloudflare D1 - platform.env.DB not found during build

I'm using SvelteKit with adapter-static, but I want to use Cloudflare D1 for database queries. I created the D1 database using pnpm wrangler d1 create, and everything seems fine. However, when I try to build my project, I get an error saying that platform.env.DB is not found. Since adapter-static generates a fully static site, is there any way to still use D1 in this setup? Do I need to switch to adapter-cloudflare, or is there another way to access D1 while keeping adapter-static? Any guidance would be appreciated....

Vite+react+tsx webpage not building wrangler

I am trying to setup this gh-pages website on Cloudflare, but i have an error with wrangler. This is the website(https://renepruu.github.io/tehnosysteemid.ee/). As i understand i should not need the wrangler for this kind of website, but i could be wrong. The error:
2025-03-06T11:37:36.831Z Initializing build environment... 2025-03-06T11:37:44.184Z Success: Finished initializing build environment 2025-03-06T11:37:44.313Z Cloning repository......

how many concurrent builds can I have with a $5/month plan?

I'm only having 1 build in parallel, across all my Pages apps. Is that the limit? I would need to have more, at least 2 or 3. Is there a way to upgrade? Account ID: e4f4ff1952c5ffde4ecd503de73766e4...

Deployment Failed... Why?

Hi all I just deployed a site with CF Pages and it failed, I've never had that happen before and I don't see an option to view how it failed. This answer: https://community.cloudflare.com/t/deployment-of-fails-with-no-log/578381/4 mentions the CF team might be able to help ...

Github problem

Hi idk if this is the right channel but when I try to link my github account it says error

Permission denied

Anyone had an issue like this when doing an implementation in pages?
No description

[NextOnPages] cloudflare does not cache anything

The documentation still specifies ways to setup NextJs on cloudflare such that requests are cached. But it appears this is no longer the case (compat date 2024-11-11), no fetch requests i make are being cached. the documentation mentions nothing of this. https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/caching/ ...

Failed to build project

Hello, everyone. I'm trying to build and deploy simple project form GitLab to Cloudflare Pages. I followed instructions for Astro (https://developers.cloudflare.com/pages/framework-guides/deploy-an-astro-site/) then added Tailwind CSS as instructed in https://docs.astro.build/en/guides/styling/#css-integrations . So far everything worked as expected. Then I wanted to use Iconify for Tailwind CSS (@iconify/tailwind4) but it only works for me during local development (npm run dev). When I try to deploy to Pages it fails to build with [@tailwindcss/vite:generate:build] Cannot load icon set for "mdi". Install "@iconify-json/mdi" as dev dependency? but all required dependencies are specified in package.json. Is it possible that not all dependencies are installed in CF builder they work differently than on my local machine? Mateusz Marzantowicz...

Update Nodejs

I was trying to deploy my static nextjs app in the page from the github repo.But it say s
12:30:21.430 â–² You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 || ^19.8.0 || >= 20.0.0" is required.
12:30:21.430 â–² You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 || ^19.8.0 || >= 20.0.0" is required.
From where do i update this node.js or it is not possible?Need help.First time using cloudfare....

`wrangler pages dev` doesn't reload when SvelteKit code changes

I found this issue to sense when something changes. Previously it only sensed when _worker.js changed and this was supposedly addressed. I'm using the latest wrangler and sveltekit.

Rocket loader still works after disabling it

I have a confusing problem. My site doesn't work when rocket loader is enabled. I disabled it, even created rule do disable it for subdomain, but script still loads in the browser preventing loading site scripts. I cleared browser cache many times, I have even checked on proxy browsers but still rocked loader works.

404.html not being picked up

I have a static Astrojs site which generates a 404.html file - I can see this file is being output in the deployment and can see it when I go to 404.html but if I go to a URL that doesn't exist I just get the browser default 404 message, not the /404 version URL: https://rd-base-repo.pages.dev/ Deployment ID: 3d0da90f-15cd-4584-b9e7-00463b5787ae Account ID: 2da8321454c49d600efa4752f5d1b563...

503 Service Unavailable, 504 Gateway timeout.

Hi, we are using cloudflare pages plans (business) and I am facing a problem that seems to come directly from cloudflare. I have already done all the necessary checks to verify that the problem is not from our side (at least partially). as you can see in the order of the images, cloudflare pages (ORIGIN) is responding correctly, however in the EDGE I get 503, 504 errors randomly especially when the request comes from earlyHintsCache, however I have disabled it and I still have this problem....
No description

Exclude Specific Folders from Triggering a Deployment in Cloudflare Pages

Hi, I’d like to know if it’s possible to prevent certain folders or files in my GitHub repository, used for deploying a Cloudflare Page, from triggering a deployment. Any guidance would be appreciated, thanks.

How to fix: Cannot find module 'cloudflare:sockets'

I have a svetekit project unsure hwo to fix this error

Blank Pages/Pages not found with cloudflare local upload and Github

I have read the documentation, and cant seem to figure out why Im seeing blank pages or why domains are not loading with the pages and with github. On github, if i try to use github pages, the build fails for no reason every time. I get multiple domains with pages and im hopelessly confused on why its using so many different domains for one singular item. This should be simple, i should be able to pull the content from github, and cloudflare serve it to the domain i specify .why is all of this useful and nifty stuff overcomplicated. ...
No description

TLS 1.2 locked - What?

We use Cloudflare pages for simple test sites, our docs, placeholders on other domains we own... Pages works fine if you know from the start that you want to use Pages, which we did. Now we are getting compliance checks failing because you use old unsafe ciphers of TLS 1.2. Any Cloudflare Pages hosted site can not be PCI DSS compliant, and anyone who accepts payments online needs to be PCI DSS compliant. To recap: anyone who uses Cloudflare Pages and accepts payments online is directly violating PCI DSS compliance and can be fined. Cloudflare Pages === guaranteed failed audit. Cloudflare proxy allows you to bump up to TLS 1.1, 1.2, 1.3. But Cloudflare Pages explicitly does not. ...

Issue with WebP Image Styling on Cloudflare Pages Deployment

Hi everyone, I'm running into a strange issue when deploying my Nuxt 3 app on Cloudflare Pages. Problem: - Locally, everything looks fine (pnpm run dev and pnpm run preview work as expected)....
No description

Page not found error 404

How can I change the root directory I just need to change it because my index.html file is inside a folder

[03a62085bd7fcfb9]: Cloudflare received a Phishing report regarding your site

i received email from cloudflare for some pages i have , my pages not scam or phishing , i dont know who reported and why reported ! and i dont know why cloudflare stoped my links !...