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

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? --...
No description

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
No description

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

daisy ui styles not applying on cloudflare built deployment

I built cloudflare pages app (using this template https://github.com/yusukebe/cloudflare-d1-drizzle-honox-starter/blob/main/README.md ) , and added daisy UI. My tailwind css styles are being applied, but not daisy UI. any clue?

Resource temporarily unavailable (os error 11)

URL: https://insights-frontend.pages.dev/ Account ID: d2db7287e9682238771b96cf6ff8b2cb Deployment ID: 0daf2083-acbf-4f8d-ba78-c7bf3b45c5fe On a pages project, I keep receiving:...

Question about Cloudflare Cache Status

My websites home page needs to get the user state and fetch some things about the servers the user is in and the status of the sidebar buttons (sidebar buttons are disabled if the users authorization is none or if it is invalid) My home page is returning a CF Cache Status of DYNAMIC I am wondering if the fact that my home page fetches user state is making it so the Cache status is not HIT...

Custom domain without <myproject>.pages.dev?

Iā€™d like my Pages app to only be associated with my custom domain. It seems possible in the docs, https://developers.cloudflare.com/pages/configuration/custom-domains/, but in practice the only option is setting up a cname. Is this true? Even for domains where Cloudflare already has full control?...

Dashboard missing preview env variables?

Hi I seem to remember that in the earlier version of the dashboard there was two categories for env variables one for preview and one for the production deployment. Now in the new dashboard I am not able to find the preview variables, only the production ones. Is this expected or am I missing something? Is there a way to view and change the preview variables in the dashboard?

how to create a webpage

Hey, sorry for the dumbness butt im kinda new to cloudflare and i dont know how to create a webpage on cloudflare ( if it is acctually possible to do so)