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

Easiest way of persisting function logs

what's the easiest way of persisting these logs? I'm using next but this prob applies to other frameworks as well

Timeouts and slow builds on one particular project

I have two almost identical projects. One of them is newer and deploys in about 40 seconds and the other is older and is either timing out or taking around 10 minutes to build and deploy. There are no errors reported when the build times out. URL: https://elva.pages.dev/ Deploy ID: 94f1dd84-66b4-45ce-8820-af236a9fe44e (although any of them are exhibiting the same issues)...

Stopped Getting Any Web Analytics Data

After enabling DNSSEC, Web Analytics have stopped working on my Cloudflare Pages site. I've turned off DNSSEC, but still not seeing any analytics data. I also tried deleting and re-enabling Web Analytics. justin-reeves.net (justin-reeves.pages.dev)....

Deployment failed! Got error: Your Worker exceeded the size limit of 1 MiB

Why do I get this "Worker" error when deploying my Pages project, even though my entire build output is 428 KiB (20 KiB larger than the Remix template I started with)? ```console ✘ [ERROR] Deployment failed! ...

Bindings depending on the environment

I have some bindings in my wrangler.toml: ``` [[d1_databases]] binding = "DB" database_name = "my-database"...

Reduce requests for Remix app?

I’ve noticed with a default Remix app deployment I trigger a lot of page worker requests, I’m assuming due to SSR. Using a combination of cache control headers in my remix app plus Cloudflare Cache Rules I’m now seeing mostly CF HIT headers. Can I assume CF HITs don’t count as worker requests? Such that my Cloudflare Pages costs will be comparable to a SSG site built with Gatsby, $0 or close to it, even if my app got a TON of traffic?...

Pages is not actually cloning my GitHub repo.

Im new to CloudFlare - excited to figure it out but I can't get it to pull my changes from GitHub. I've tried setting up a webhook in GitHub, but although the Source GUID changes, the build fails. When I try to retry a deployment, it only takes 1s to 'clone the repo' and the same 'Source / Branch' is repeated. .. no changes are being pulled from GitHub. I'm sure I must be missing a configuration step.. ?

Maximum call stack size exceeded

Hi all, I've been working moving an Nextjs app from Azure to CF Pages, keep getting this error with very little information causing it. ``` ✘ [ERROR] A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished. ...

Unable to open Web Analytics in Pages settings.

Happy Birthday! Cloudflare The Pages interface has recently been updated. I followed this document but couldn't find the settings entry after searching for a long time....

[Cloudflare pages] Header auto join with ","

Hello everyone, https://developers.cloudflare.com/pages/configuration/headers/ I config the header but it auto joins with the "," => incorrect for CSP header...

Developing a new application using template - https://github.com/yusukebe/cloudflare-d1-drizzle-hono

I am adding auth flows using Lucia to above template which uses D1, Drizzle & Honox. I am using pages. My major problems are around common js modules. I want to use "Resend" library to send emails. IT runs fine once deployed but locally when I run the application using "vite" it gives commonjs related errors, I am trying to fix them with Vite.config.ts and @originjs/vite-plugin-commonjs but no success till now. Another option is to run the app using npx wrangler pages dev but it gives error around D1 access. Did you experience same problems ?...

RootServer DNS Server 1.1.1.1

cat /etc/resolv.conf nameserver 1.1.1.1 nameserver 1.0.0.1 ...

How to point CF domain to CF pages project

(see first pic) I used to have my domain (jamstart.app) serve convent from a pages project using the setup on the pic, and worked just fine now i'm tyring the same thing again but it won't work, any idea why? --...

Astro + env vars

I really want to use cloudflare, but every time I stumble upon errors or documentation gaps. Let's see if I can come out from this one: I'm building an Astro application with the cloudflare adapter. I've already built one in the past, and on the old, I was using import.meta.env for environment variables with no problem. But for this new one, it seems like they don't work....

Changed resources are still "cached"

Site: https://projectlombok.pages.dev/ I've updated /js/supporters.js The generated response headers say cache-control: public, max-age=14400, must-revalidate My old page does have a different generated etag...

sitemap HTTP error 520

My xml maps are fine, but my google sitemap prompts can't be crawled, sometimes again. How can I solve this problem

Not able to add Custom Domain to Pages

Whenever I try to add my Custom Domain (purchased through Cloudflare) to my Page, I get the following error: ā€œUnable to edit this record. It was generated by Cloudflare and can be modified in your Registrar configuration.ā€ But I’m not able to modify it since Cloudflare manages it. The Page deployment works fine, and I can access it online....

UNEXPECTED END OF JSON

Hi, Whenever I make API calls through my next js server hosted on cloudflare pages, I am constantly receiving the error Unexpected end of JSON input when reading await response.json(). I dont know if my servers are being overwhelemed, the api request always works because im testing it on postman. There is something going on, when sending requests from the api. For more info, the request is being sent to my external heroku server. any ideas?...