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

522 Error - Custom domain and www. won't redirect.

Hello, Today I was working on my site and noticed that www. doesn't redirect as I expect it to. The domain in question is https://debauc.us...
No description

ā€œwrangler pages functions buildā€ yields output with different filenames

I'm building my Pages' functions with the following command wrangler pages functions build ./functions --sourcemap --compatibility-flags=nodejs_compat --outdir=./dist-functions/ Its output is either index.js + index.js.map...

500 Internal Server Error on Cloudflare Page

Hi everyone! I got this error after deploying a Next.js project. Please let me know how to fix it. Thanks so much!...
No description

I have a git repo that deploys through pages, what would be the best way to share the deployment log

I looked into the account management , it seems I have to also give worker admin/ admin read-only privileges to them. Is there a way to only share the deployment logs for them?

Pelican command not found in deployment to Cloudflare pages

I'm trying to deploy a Python Pelican static blog to Cloudflare. It correctly pulls the repo from GitHub and goes through the whole build process and finishes with a green tick next to anything so I was a bit surprised when I couldn't access the site. Looking through the build log though it appears that Cloudflare does not know where the pelican command is. It all works perfectly on my system and the repo has all dependencies set using Poetry - can someone give me some ideas on how to fix this p...

MiniflareCoreError

I have an error while running wrangler pages dev ./. Please check on https://discord.com/channels/595317990191398933/1207671960767565884, and help me....

ETA for wildcard subdomains support on pages

Is there an ETA for this? It's really the only thing preventing me from moving from vercel. https://community.cloudflare.com/t/wildcard-custom-domain-alternative-for-pages/509081/3...

`wrangler pages dev -- astro dev` fails to follow Astro redirects

Astro project with wrangler pages dev -- astro dev and default adapter fails to properly execute an Astro redirect return context.redirect("/login", 302) with [wrangler] Could not proxy request: TypeError: fetch failed. Deployed version works. Only dev fails. Astro runs on localhost:3000, and Wrangler on localhost:8788...

Wrangler upload succeeds, but deployment fails

Is there any way to get logs for a deployment on the CF side? My wrangler deployment is all green, but the deployment itself has a caution icon with a deployment message in the CF UI.

MailChannels with an external domain?

If my domain is hosted through an external registrar (Namecheap or Porkbun), will that affect my ability to use MailChannels to send email via a contact form / MailChannels pages plugin? Does the domain need to be hosted on Cloudflare for the MailChannels plugin to work?...

Add dependencies needed by build script?

Is there a way to add a dependency that is needed by my build script for a pages deploy? In my case, it is jq. Things I tried: * apt-get install jq - "E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?" * sudo apt-get install jq - "sudo: The "no new privileges" flag is set, which prevents sudo from running as root."...

Pages Functions Bundle post-processing

I need to upload Functions bundle's source map to Sentry + post-process both the bundle and its source map to inject Sentry's debug-id https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/cli/#3-inject-debug-ids-into-artifacts AFAIU I need to do the following: 1. use wrangler pages functions build --sourcemap to generate the bundle and its source map. 2. do the necessary post-processing of the generated files...

Cloudflare Could not load virtual:astro-icon

I was trying to update something on my cloudflare pages site, and suddenly I'm getting the following error. All I did was change an HTML lang tag. I'm guessing Astro Icons have changed in some way since 2 months ago? ```js 17:21:39.655 > astro build 17:21:39.655 ...

bindings deployed with wrangler.toml

when I deploy pages, why doesn't the deploy pick up the bindings specified in my wrangler.toml?

Passing env variables when deploying page application with wrangler

Hello, Is there a way to pass environment variables when deploying with "wrangler pages deploy" ? I tried creating a wrangler.toml and configured the vars there as in Workers docs, but it seemns that it doesn't work....

CF returns 522 for domain (eroticxholidays.com) after stop of using pages

I deleted all custom domain settings, cname, I deleted even pages website - nothing helped. I even deleted CF account and made new one, nothing works if you use CF proxying - it will return 522. My host is 100% normal due it serves different domains via CF....

Page blocked from indexing

Optimizing my site and stumbled upon this under the SEO section. I have not set this rule in any of my code. How do I resolve this issue?
No description

Cloudflare Pages and Turborepo

Hi friends. Question: I'm building some app with Vue, using Turborepo and of course Cloudflare Pages to present it. I'm getting errors about missing node features like crypto or buffer, coming from Worker directory (api). I've created a wrangler.toml file with the configuration that is enabling these features but seems like CF does not see it. Where should I place the configuration file, in the root of monorepo, worker folder or in the front-end app? I've tried multiple variants and nothing work...

Remix Vite and cdn resources

Hi there, I have a Remix project using the new Vite build tools, all working as expected locally. I am using the vite external and output paths functions to use SyncFusion controls from their CDN network. However when i publish the site to CF Pages, I am getting a build error that it can't find the module... Error: Failed to publish your Function. Got error: Uncaught Error: No such module "https:/cdn.syncfusion.com/ej2/21.1.35/ej2-react-base/dist/ej2-react-base.min.js". Is there a setting somewhere that will allow this type of setup. The reason I had to do this was because of the 1Mb limit with functions....

Accessing KV bind on Vue Script from import.meta

Hi all, been digging a while and haven't found something close. I've bounded the KV with namespace kv and tried to make use of it between Vue components script part like: await import.meta.kv.get('key') both preview and production say can not read get of undefined. Wouldn't this be the way to interact with kv ?...