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

i'm building a nextjs app on pages, and

i'm building a nextjs app on pages, and i want to bind it to a D1 database. i created a D1 database & created a new table, but it seems that i can't connect to it when developing locally. wrangler.toml...

Has anyone been able to bind an R2 in

Has anyone been able to bind an R2 in cloudflare pages analog framework? I followed the instructions here: https://developers.cloudflare.com/pages/framework-guides/deploy-an-analog-site/#bindings, added my R2 in my wrangler.toml (and I can see it is now part of my pages project), but the context does not have a context.cloudflare.env...in fact .env is null.

Hi, has anyone been able to implement

Hi, has anyone been able to implement Baselime on a NextJS app in Cloudflare Pages? - This option doesn't work because it uses the functions folder and I use next-on-pages to build the app, and these are incompatible with each other (the same applies to HoneyComb): https://baselime.io/docs/sending-data/platforms/cloudflare/pages/ - If I want to use OpenTelemetry for NextJS, I get errors like Module not found: Can't resolve 'perf_hooks', and as I understand it, this is because Pages is not a full Node environment: https://baselime.io/docs/sending-data/languages/next.js/. Is there any way to resolve perf_hooks, child_process, fs, os, http?...
No description

> Is there any issue with this approach

Is there any issue with this approach? I want to try it out and am getting CNAME Cross-User Banned when I load the domain the customer uses.
CF Pages uses CF for SaaS under the hood, which basically has an allowlist of all the accepted host headers/subdomains allowed to use it. It's seeing example.customer.com and saying "hey that's not on our list", and it would only allow it as a Verified Custom Domain if it was pointing direct Your options basically are: 1. Use CF Pages Custom Domains up to the limit: https://developers.cloudflare.com/pages/platform/limits/ (depending on plan), have customers cname to pages.dev...

Hugo build caching

Is there a way to get build caching in Hugo sites? (cc @Dario , who seems to be the resident build cache maven)

Docusaurus build cache

@Sebastien Lorber It should be quite straighforward to add, I'll give it a whirl this weekend 🙂👍

Custom Domain

Okay, I don't know how long it takes to update the DNS but I'm getting this response 👉 👈
No description

do you see any other headers on that old

do you see any other headers on that old response?

Svelte/kit on CF behaves differently on two domains, with the same deployment

Hey all, I've deployed a svelte app using cloudflare pages, but it's behaving really really weirdly. https://discord.com/channels/457912077277855764/1239235015422902372 - is my post in the svelte discord, but to simplify it, it works in the default pages.dev domain, but not with my custom menu.cruncho.app domain... and I've got no idea why...

Does `wrangler pages deploy` pick up `wrangler.toml` config?

Seems like the wrangler.toml is not being properly picked up when I used wrangler pages deploy. I made some bindings with the CLI which I added to the wrangler.toml, but the bindings did not actually get applied, I had to do it manually in the dashboard. Is this a known issue or am I "holding it wrong"?

Affiliate Link

So rather than giving out my full affiliate link I’d like to just give out mysite.com and then anytime anyone hits a mysite.com URL they are guaranteed to pull a new cookie

i was planning on moving from github

i was planning on moving from github pages to cloudflare pages 1. does cloudflare pages default to brotli compression? 2. what's the default compression level? 3. can the compression level be tweaked by the dev?...

Hi, is authentication available for

Hi, is authentication available for single paths like "/admin"? Looking at Cloudflare Access Pages Plugin it seems to be per domain. https://developers.cloudflare.com/pages/functions/plugins/cloudflare-access/

Nextjs 14 app API and am using firebase for chat in my app

I have nextjs 14 app and am using firebase for chat in my app. Create API for for i get below errors when i build my app. Path (app/api/(chat)/users) ```js ./node_modules/@firebase/database-compat/dist/index.standalone.js:13:1 Module not found: Can't resolve 'tls'...

I've been trying to figure this one out

I've been trying to figure this one out for days now. But I think I've found an issue with Pages... deploying with a wrangler.toml file that has a service binding, just ends up in the Queued state forever. If I deploy without wrangler.toml (aka no service binding), and then manually add the service binding via the UI, and then re-deploying the app... it works. I've tried hunting through network requests, and through the code, but I cannot find anything lol.

hey guys! is there a good example

hey guys! is there a good example repository where i can find an example of an R2 object being used to set as source for a media element? I'm wondering about the wire up, I'm close but not exactly there would be awesome, thanks...

Just to confirm, are you saying that the

Just to confirm, are you saying that the binding doesn't exist, or that it isn't returning an object?

Build configuration · Cloudflare Pages d...

Can you access environment variables during runtime in Cloudflare Pages? This only refers to environment variables for build time https://developers.cloudflare.com/pages/configuration/build-configuration/#environment-variables...

pelican build integration is failing

pelican build integration is failing because the pelican executable is either not installed or not on the PATH at build time