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

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

How to handle private assets with Cloudflare Pages & GitHub?

I'm making a website that uses licensed fonts that I obviously can't distribute, but I want the rest of my site to be open source (I'm using a GitHub repository). I have the folder with the fonts in my .gitignore, but the fonts need to get to Cloudflare somehow. I currently have Cloudflare set to deploy my site from the GitHub repo, but I can't upload the fonts to GitHub, so how should I deploy my site instead?

Cannot link github

Account ID: 90e573cb19849ba7d4a553766544b9b0 When I try to link my new github account to cloudflare, it fails to link. There is no error, but it does not appear in the dropdown when creating a new pages site. Ive also tried unlinking and relinking to no avail? (Problem seems very similar to https://discord.com/channels/595317990191398933/789155108529111069/1056577433261854720 for reference)...

Forward Build Logs?

We've got a corporate CloudFlare instance with some GitHub-driven CloudFlare pages projects. Would like to be able to allow either the link in the build report (what's shown in GitHub Conversation for a PR) to allow NOT-ADMIN USERS to see the build logs to debug stuff... really don't want our developers to have to have CloudFlare accounts to see the build logs. Is there a way to have the logs visible on the link specified, or is is possible to have it push the build log somewhere (an GitHub issue, email it, whatever)?...

What storage does "Cloudflare Pages" use internally for static assets?

What storage does "Cloudflare Pages" use internally for static assets? I'm asking because we are using "Workers for Platforms," and currently, we use R2 for static assets. Would moving static assets from R2 to "Cloudflare Pages" potentially result in significant performance gains worldwide?

CF Pages site serving expired SSL cert

Hey I have a cloudflare pages site serving an expired SSL cert, anyone else facing the same issue? (ticket id is 2810240 if any cloudflare employees see)...

Using builtin node packages on build process cause errors

hello, is it possible to have firebase-admin on cloudflare pages? it keeps getting an error on build, because it relies on node packages ``` error during build:...

Make custom domain point to another custom domain

Hello 👋 Once again, great job with Cloudflare Pages, great product 👍 I’m trying to make a custom domain point to another custom domain of a pages project but it does not work....

Stripe JS SDK & next-on-pages Compatibility

Hi all - is it known if the Stripe SDK is compatible with next-on-pages? I have a NextJS app that I'd like to deploy on pages, and am using next-on-pages to support SSR & bundling my /pages/api/*.ts API's into workers, however, my pages builds are failing with: ``` 22:53:11.754 â–˛ Failed to compile. 22:53:11.755 â–˛ ../../node_modules/function-bind/implementation.js...

Content-Type for some files are randomly missing

Hey! Deploying a pretty standard site on Pages, and files randomly are served without a correct Content-Type, making the application fail. Earlier today the entire index.html was served as plain text, and now there's a JS file missing it's type

website issues happens all the time

hi i have some websites hosted on replit but it goes down all the time is this bc of bc of the domain site (exsample namecheap) where i got my domain from or is this happing bc of outer things hduv-games.eu.org bota-apex.eu.org help.bota-apex.int.eu.org...

Running into 522 error when trying to connect

My website is on persolv.pages.dev, and I am currently running into a 522 error when trying to access it from the root domain (www.persolv.ai). I recently transferred away from squarespace so not sure if something is off here, but I've already removed the squarespace A records and added in the cloudflare nameservers