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

Some people get ERR_CERT_AUTHORITY_INVALID on a custom domain

Getting a few reports of people on Chrome getting NET::ERR_CERT_AUTHORITY_INVALID when accessing https://charity.cdawgva.gg. Pages url: https://cdawg-auction.pages.dev Account ID: 54392aaba81d753fd12c3b659b790ed4...

Cannot find module '@napi-rs/simple-git-linux-x64-gnu'

Hi again 🙂 I'm trying to deploy a Nextjs project to Pages, a different one to my previous thread. However, this one fails because of the following error:...

Package "path" not found during build

Hey I am getting a path package error when deploying my applicaiton ````...

Pages not creating Worker, NextJS returns 404

Hi, I am deploying a NextJS project to Pages, however, every route returns a 404. It uses the Edge runtime and only contains dynamic pages. It succesfully compiles en uploads the assets, but it's not creating a Worker it seems....

How to use node_compat = true with cloudflare pages ?

I know that there is a flag nodejs_compat, but it's not as powerful as node_compat = true , nice nodejs_compat isn't gonna polyfill modules such as fs or os How could I use node_compat = true with a cloudflare pages (not worker) project ? Can I do it directly with the cloudflare UI/Dashboard ?...

Cloudflare DNS issue (getaddrinfo ENOTFOUND) with Cloudflare pages site

Getting this error: getaddrinfo ENOTFOUND at https://texmexcleaning.com Here is the pages site that it is setup to cname to: https://texmexcleaning-com.pages.dev/ Went down at 2023-06-06 04:54:31.779 (UTC)...

Getting a warning message in the wrangler terminal "Your worker called response.clone() but didn..."

I'm trying to call a controller from onRequest then the controller will do all the things, Plz check the images below.

Failed to build Astro site while using @cloudflare/pages-plugin-sentry

Trying to integrate sentry plugin for cloudflare with astro and it is failing to build. The setup is like this ``` // middleware.ts...

Infinite redirection in Cloudflare Pages

Hello! We have deployed some next.js projects we had in Vercel in Cloudflare. Everything works fine, except when someone accesses a URL by putting a slash / at the end of it. It goes into an infinite loop. ...

Debugging Documentation?

Where can I gather logs within Cloudflare pages, to debug potential issues happening?

Next build succeeds but it fails to "find a module"?

I got a Next 13 app with Server components, everything was working fine and then I started getting errors on my builds (look at the last line) ```log ... 09:57:35.704 - next-on-pages-dist/functions/api/[...path].func.js (esm)...

CSS is different in pages, vs local environment.

Below are previews for local vs pages renders.

Using connect() API in Pages

Hi team. I have a Pages function that talks directly to a Postgres DB using the new connect() API (detailed here: https://developers.cloudflare.com/workers/databases/connect-to-postgres). The code works fine in a Worker and also when running Pages locally. But when trying to deploy to CF, I get node compatibility errors. I have the nodejs-compat flag set. What am I missing? ```...

wrangler pages dev stuck without any output

I created a new project using npm create cloudflare@2 with remix template, when I try npm run dev I can not get work locally, the command stucked as you can see in the screenshot. It also not work on wsl2...

Pages limit

Hello, trying to use cloudflare pages to get websites on it. But it wont let me subscribe to business plan & restricts to 100 websites even though it literally says can do unlimited websites....

Your worker called response.clone()

I keep getting the following error despite not calling response.clone() at all:
Your worker called response.clone(), but did not read the body of both clones. This is wasteful, as it forces the system to buffer the entire response body in memory, rather than streaming it through. This may cause your worker to be unexpectedly terminated for going over the memory limit. If you only meant to copy the response headers and metadata (e.g. in order to be able to modify them), use new Response(response.body, response) instead.
This is my API call (in astro)...

Qwik .dev.vars (bindings) with CF pages help

Hi there, I'm using qwik and an openai key in my app. From the docs, for bindings, the cf and qwik docs differ slightly (just fyi) https://developers.cloudflare.com/pages/framework-guides/deploy-a-qwik-site/#use-bindings-in-your-qwik-application vs...

Error On Build: Failed to publish your Function. Got error: multipart: message too large

As title says, I get this error when trying to deploy my NextJS app, attached is the folder size of the _workers folder and the zipped size I'm on workers paid plan and current build works on vercel....

Proxy error when trying to redirect to external url

When using sveltekit and trying to do a simple redirect like
throw redirect(302, 'https://google.com')
throw redirect(302, 'https://google.com')
...

Wrangler CLI seems broken currently

I need to give permission to my worker and the cli opens the page to allow permission but then it goes to a broken localhost oauth url. But it can't find it. When I run wrangler login the same thing happens. I can log into my Cloudflare account fine....