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

"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?...

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. ...

plain text environment variables are not available under env

when I set encrypted secrets, they're shown in env.SOME_SECRET , for example. if I set a plain text variable in the CF dashboard, env.SOME_PLAIN_TEXT is NOT available what gives?...

Some JS not running on Cloudflare Pages

Hi everyone, I am new to Cloudflare Pages and I'm running into a problem with my first project. I connected one of my GitHub repos, which is a simple photography portfolio, and deployed it to Cloudflare Pages. This worked without a problem, but some of my JS files aren't running as far as I can tell. However, there are no errors in my Dev Tools console and I don't see anything unusual in the Network tab. I've tried on both Chrome and Firefox. The JS files that do work are the ones that control my drop-down menu navigation and the dynamic year update in the footer. The ones that do not work are the ones that control my image galleries and the contact form validation (the form validation crashes the page entirely with a 405 error). All of the JS works locally without a problem, including the contact form submission. I've been reading the troubleshooting docs and searching around trying to figure out what to troubleshoot. I've seen suggestions to g into Settings and turn off Rocket Loader, but I don't see Rocket Loader anywhere in the settings panel. I've already gone through "Manage Deployment > Retry Deployment" and that didn't change anything. ...

Clicking on the alias link leads to a different result than clicking on the . dev site:

Pushing my website update via github works for my dev instance but for some reason does not make changes to my actual domain alias (firstnamelastname.com). Can this be fixed with DNS records? Thanks for the help

Can't see Speed section in the dashboard

I can’t disable Speed Brain feature because I don’t see this option in my dashboard. But it is applied to my pages.dev app and it does not work correctly. How can I disable it? https://grow-my-tribe.pages.dev/...

node-postgres issue

I saw in the changelog:
The node-postgres (pg) driver is now supported for Pages applications using Hyperdrive.
But I can't get node-postgres to work on Pages. It works locally, but when I try to deploy I get:...

So frustrated with Hugo and themes. Is it just me ?

I have a .gitignore which contains /themes/** . This is so that themes are not replicated as they are git repos in their own right. I have a .gitmodules which contains: `[submodule "themes/PaperMod"] path = themes/PaperMod...

Pages deployment Error: Output directory "[foldername]/dist " not found.

Hi, I am currently trying to deploy a website following this tutorial: https://developers.cloudflare.com/pages/framework-guides/deploy-a-vite3-project/ But using React instead of Vue. The directory is inside a subdirectory of the project and I set the root directory inside the build parameters accordingly. The build is working: ```...

Running with a newer version of Node - env var not being passed through?

I need to use node 22 to build/deploy, which I understand can be achieved by setting NODE_VERSION=22. I've set this under Settings > Variables and Secrets but the deployment details then list "Environment variables: None" and it doesnt appear to effect the build?...

Getting a 500 internal server error

Today, we deployed new code and encountered a 500 error upon viewing the site. Even after reverting the commits, the error persisted following deployment. Ultimately, manually rolling back the deployment to an older commit from the pages dashboard brought the site back up, but as of now we are not able to push new code out.

WAF Price and setting up

Hello all, i am trying to find more information on Cloudflare WAF, whether it is paid or free, and how to set it up. all i end up finding is some general notes but thats it. I have a website setup on hetzner (laravel, very simple app) and i end up with lots of trafic from bots. Looked at Shieldon package but not sure whether it is a propper solution. Can anyone point me in the right direction on pricing, how to set it up etc? I've read in some articles that the WAF is free and part of the free p...