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

how to change wrangler version to 3.80 on cf

hi all, how do i make Cloudflare build my pages sveltekit with wrangler@latest ? it keeps building it with 3.76 not 3.88 , i have compatibility date set up to latest one which is 11 on cf dashboard ; i need this version because i got require of "node:crypto Error in my sveltekit pages , and isees this PR saying it fixes it ? https://github.com/cloudflare/workers-sdk/issues/4725

worker cache api

hi guys, for worker cache api, if i cache the smae request the route is receiving, will the same route be invoked again on next request ? i.e if i have a get api /blog ?id=1, and i used cache api to cache exactly this request, on next request, will 1. this worker be invoked again ...

Your Worker exceeded the size limit of 1 MiB. Re

Error: Failed to publish your Function. Got error: Your Worker exceeded the size limit of 1 MiB. Refer to the Workers documentation (https://developers.cloudflare.com/workers/observability/errors/#errors-on-worker-upload) for more details.

I want to copy remote d1 data to local.

Currently, I would like to use the data from the remote d1 locally for development purposes. In this case, is there a command to copy the remote data to the local d1?  The amount of data is not large, so I am not worried about queries....

Node version

My build won't go over 18.17.1 despite setting the Node version to 22.11.0
No description

Removed an HTML page but it's still showing up on my website

Hi, my blog runs on Cloudflare Pages. Source code is here: https://github.com/AleksandrHovhannisyan/aleksandrhovhannisyan.com/. I'm using a static site generator called Eleventy but that's not relevant. My most recent commit removed the following page from my source code: https://www.aleksandrhovhannisyan.com/blog/javascript-game-loop/. However, after pushing up that commit and redeploying, I'm still seeing the page. - Build cache is disabled under Settings > Build....

Weird url live on pages site

There is a URL live on my website and I don’t understand where it comes from: https://bneijt.nl/cdn-cgi/l/email-protection

Index.js loads a html file in deployment

9d0fb077.piehousecoop.pages.dev when i deploy for some reason the html file is loaded as the index.js in dist and i get the following: index.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec....

trying to host a pages project at example.com/docs rather than the root

How would I go about doing this? I've been looking at origin rules but i don't see an option for changing the host header like the cloudflare docs say should be possible.

Usage Error: Unsupported package manager specification ([email protected],bun,1.1.30)

Hello I'm trying to deploy a nextjs application. I've connected it to my github repo, but when it tries to build, it fails with the following:...

Failed to load resource: the server responded with a status of 500 ()

I am using Atsro trying to make an endpoint that accepts a message that returns a response. Here is the code: import type { APIContext } from 'astro'; import OpenAI from 'openai'; ...

"nodejs_als" compatibility flag

Hi guys, is compatibility_flags = [ "nodejs_als" ] available in pages? I see it in the worker docs, but in the GUI build settings in Cloudflare dashboard it isn't available in the dropdown. My build failed both when I added it via the dashboard and when I added it via wrangler.toml (which was correctly configured)

Custom Domain limits

Hey folks, we're on the business plan so have a limit of 500 custom domains for our pages project, but trying to get in touch with someone who can help us remove that limit since we're going to hit it imminently. Very happy to pay for this. Anyone know who I should be talking to?

Will all incoming requests count towards usage when using advanced mode?

Hi folks, I'm interested in the advacned mode of the pages functions. Does return env.ASSETS.fetch(request); will comsume requests of plan even if they are static files?...

SvelteKit build causing MIME type errors on Cloudflare Pages with adapter. 500 Internal Error

Hey yall, not sure what is going on but my I've been trying to build my app for Cloudflare pages (which was working no more than a week ago) and suddenly my page deployments aren't loading. Console reveals the errors shown below. I have SSR turned off but that's about as much configuring as I've done to the build system (besides of course using the Cloudflare adapter for builds). Even weirder is that when I run npm run preview the local serving of the page works no problem. No idea what is causing this or how to fix it. Any ideas? ```...

Unable to add subdomain to my Cloudflare Pages.

I'm unable to add any of my custom subdomains to my Cloudflare Pages. Regardless of which subdomain I provide, I encounter the following error: "The hostname is part of a banned domain. This web property cannot be added to Cloudflare at this time. If you are an Enterprise customer, please contact your Customer Success Manager. Otherwise, please email [email protected] with the name of the web property and a detailed explanation of your association with this web property." As instructed, I emailed [email protected], and they advised me to create a support ticket from my dashboard, stating that the support team would resolve the issue. However, since I’m on the free tier, I’m unable to create a support ticket. That’s why I’m reaching out here in Discord support....

Reaching the limit of pages

Hi teams, thank for your wonderful services As I see in the docs, the page limit for free tier is 100. However I just can create 20 pages and receive the error that reaching the limit. I already sent the form in https://docs.google.com/forms/d/e/1FAIpQLSd_fwAVOboH9SlutMonzbhCxuuuOmiU1L_I5O2CFbXf_XXMRg/viewform ...

Getting error on wrangler pages dev. I have following file /functions/api/xyz/index.ts

X [ERROR] service core:user:<project-name>: Uncaught SyntaxError: Identifier '__cf_cjs' has already been declared at null.<anonymous> (functionsWorker-0.8999551136653665.js:999)...