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

workers-help

pages-help

general-help

durable-objects

workers-discussions

pages-discussions

wrangler

coding-help

kv

🦀rust-on-workers

miniflare

stream

general-discussions

functions

zaraz

âš¡instant-logs

email-routing

r2

pubsub-beta

analytics-engine

d1-database

queues

workers-for-platforms

workerd

web3

🤖turnstile

radar

web-research

logs-engine

cloudflare-go

terraform-provider-cloudflare

workers-ai

browser-rendering-api

analytics

next-on-pages

cloudflare-ai

build-caching-beta

hyperdrive

vectorize

ai-gateway

Alternatives to DOMPurify?

Both DOMPurify and isometric-dompurify don't work and show a "ReferenceError: window is not defined" error. What alternatives can I use that work with Pages?

Build pipeline times out since using sass-embedded

We need to add sass-embedded in our vue project. Since then, our Cloudflare pipeline won't build anymore because it times out after successfully generating content, as it seems. - Acc 28f9ea6fa36ba010df69e764aa3c0ca2 - deployment id fbe8b425-9d7a-4794-a0e2-5fcb45123ddc ...
No description

How to deploy pages from command line?

My project contains a frontend directory (with src/ and build/ inside it) and a functions directory (containing cloudflare functions). I usually deploy my cloudflare pages by just making a commit and pushing an update to the branch. But I wanted to deploy without pushing and used this: wrangler pages deploy frontend --project-name project But now my deployed site is broken and blank. Maybe cause I only passed the frontend directory to the pages deploy command and it missed the funcions/ directory? How do I do this properly?...

Does page function support DO webscokets

title, i asked this question in diff channel but no one seems to have a clue 😦 i thought it is an easy question, im not able to make it work ... WebSocket stuck at connecting. Any help

Error with pnpm run build and Issues Modifying 'node_modules' File"

Guys, can someone please help me solve this? Every time I try to run pnpm run build, I get this error, but the file causing the error is part of the 'node_modules' folder. I've already tried several ways to fix it, but I haven't been able to find a solution.
No description

Long build times

``` 20:04:30.977 Installing ruby 3.3.4 20:04:31.363 ==> Downloading ruby-3.3.4.tar.gz... 20:04:31.369 -> curl -q -fL -o ruby-3.3.4.tar.gz https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.gz 20:04:31.382 % Total % Received % Xferd Average Speed Time Time Time Current...

website doesnt work (im a newbie)

Hi, i tested my folder, site runs fine on localhost. I set everything up within cloudflare, imported my github repo etc. Created a Cname dns everything. I dont know what im doing wrong
No description

tunnel created but not working

Hello, I created a tunnel with cloudflared to allow me to access a server where I can save and render images for my page, but for some reason I get this message. Does anyone know what's happening? I haven't known what to do for weeks
No description

Setting cookie on custom domain

From a function I am trying to set a cookie on create.discordforms.app, this is not working but it does work on the non-custom domain forms-builder.pages.dev. Header: ``js 'Set-Cookie': session=${sessionID}; Secure; Path=/; Max-Age=${expires_in}; SameSite=Lax`,...

_redirect file or redirect rule? - Redirect a saas custom domain to apex domain

Posted this pages discussions;got no help, sorry for retrying here:/ Using a _redirect file or a redirect rule, are they the same thing essentially?, one is a GUI and another is a text file? Ideally i want all cname that do not have a path of /dash to redirect to my apex domain....

"An unknown error occurred" when I try to create a new Pages project

I get the error "An unknown error has occurred" when I try to create a new Pages project associated with my project in Gitlab. There is access to Gitlab from Cloudflare, previously projects were created without problems. How can I create a project using the CLI. and link it to my Gitlab project?...
No description

TypeError: Cannot read properties of undefined (reading 'navigator')

I found the error message through Cloudflare's real-time logs: TypeError: Cannot read properties of undefined (reading 'navigator'). I deleted all the code using 'navigator' in the project, but after redeploying, the same issue still appears. I tested it with another small project. Could you please guide me or give me some hints? Thank you very much! https://2f864bdb.image-splitter-5h0.pages.dev/grid-image-splitter...

Hello, Can i use key-value storage on CF pages ?

Hello, Can i use key-value storage on CF pages ?

404 on deployed site

I am deploying to cloudflare for the first time, however my site is displaying a 404. Some info: I am using remix https://b73044f2.man-1oe.pages.dev/...

Html, js files located in pages, flask located on another provider

Can html, js files be located in pages. CF tunnel into a flask app on on another provider that runs python flask. Print a string when on route /. It needs to print a string from server into index.html?

How best to use jsx / tsx entry point with `cloudflare pages dev`

I am using vanilla Cloudflare Pages Functions with cloudflare pages dev and I'm experimenting with @vercel/og using the plug-in (https://github.com/cloudflare/pages-plugins/tree/main/packages/vercel-og) as documented in the Generate arbitrary images section (https://developers.cloudflare.com/pages/functions/plugins/vercel-og/#generate-arbitrary-images). I have it working with plain js (React.createElement), but when using jsx like in the examples I get a parse error from es-module-lexer...

Debugging service binding

Hey folks, I have a service binding I call like this:
const result = await ctx.runtime.env.CRYPTO.encrypt(arg)
const result = await ctx.runtime.env.CRYPTO.encrypt(arg)
...

HTTP Error 403.14 - Forbidden - Help me

Hello Cloudflare Support, I am from Brazil and I work in the IT department at Shopping Vida. We are experiencing an issue with our website, "www.atakashow.com.br," which is currently down and showing the following error: HTTP Error 403.14 - Forbidden. The issue appears to be related to our Cloudflare configuration. A former employee, who was responsible for setting up and managing our Cloudflare account, was recently let go. Since then, we have lost access to the account, as the recovery email is linked to the former employee's personal email, which is not associated with our corporate email. We no longer have contact with this individual, and the recovery options for the Cloudflare account are inaccessible to us....

ERROR 1033 Argo tunnel erro

MY account ID: d854378bec2fc01804db58ef5b9d0cfd houseautomacao.com.br :NotLikeThis: r ...

Unable to override build settings when deploying

I'm having trouble with overriding the pages build configuration. Changing the build command to npm install --force && npm run build doesn't seem to have an effect. npx wrangler pages deploy does work as a workaround, but prevents using git integration. The current setting of npm clean-install does not like dependency conflicts. A second workaround is to use git-actions. However, it seems unwieldy when the problem can be solved with just overriding the build command. ...