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

how to use production d1 db in local

hi folks, i'm new to db world i have my d1 database defined in format on my wrangler.toml file. ```toml [[d1_databases]] binding = "CB_DB" # i.e. available in your Worker on env.DB database_name = "cherry-blossom"...

Compatibility flags for PosgreSQL

I am trying to build and deploy SvelteKit page with enabled flags: nodejs_compat or nodejs_compat_v2 https://developers.cloudflare.com/workers/configuration/compatibility-dates/#compatibility-flags I am using Drizzle connector, but seems I run always into node compatibility issues, which are present on native postgres.js also. Connectors are present in Hyperdrive: https://developers.cloudflare.com/hyperdrive/configuration/connect-to-postgres/#supported-drivers...

cache/webpack/client-production/0.pack is 30.9 MiB in size

i have tried ssr:false, and loading all libs from upkg build command : npm run build output directory: .next . kindly help...

Failed: build command exited with code: 1

Since 2 days ago, pages builds that would usually build, fail, with the below error: 18:10:27.384 SSG results 18:10:27.384 - Generated: 244 pages 18:10:27.385 - Duration: 5.1 s...

How to use `--persist-to` with Remix run dev command of `remix vite:dev` in cloudflare pages ?

I have seperate repo for workers and pages, but I want to share KV data between those projects. After reading docs, I found there is a flag for wrangler command as --persist-to to store local state in one place. But with remix run template, the local development command is using remix vite:dev . So I am confused where to use this flag ? I couldn't find anything to put in wrangler.toml as well

Do not await a long running Promise and return early to user.

I am using SvelteKit and deploying to Cloudflare Pages. In my SvelteKit Form Action (which is a Pages Function I think), what happens if I don't await an async operation and instead return early to the user. For instance, I have an endpoint which deletes images from Cloudflare Images, but I'd rather not make the user wait for that to happen, so I simply don't await the Promise.all that calls the Cloudflare API. It seems to be working great, but is this problematic? Note: this delete operation is fire and forget since I'll run a cronjob to cleanup....

stalling build on pages project

originally it started timing out and eventually getting an error with something called rollup gnu

How can I ignore some sub modules when build ?

I have some private submodule in my repo but they dont need for building, how can I ignore them when building to prevent the fetch error from Cloudflare Pages builder ?

x internal errors encountered: Resource temporarily unavailable (os error | 11)

x internal errors encountered: Resource temporarily unavailable (os error | 11) how to handle this error?...

Open Telemetry

My company has a standard Graphana endpoint and they are asking my Pages app forward open telemetry logs to it. This is my first time using Open Telemetry. Does anyone have experience on this in Cloudflare Pages to share? Should I add a library and wire it up myself or forward Cloudflare logs somehow?

Env per Branch

is it possible to deploy from wrangler and provide environment variables for just that build/branch? the scenario is to allow a developer to push up a preview build that connects to mock services by providing 'mock=true' git commit message.

Pages files - Limit Increase

Hello, I'm building a Hugo project that will generate thousands of pages and I surpass the file limit of cloud pages. I already wrote you via the form last week but I didn't receive any response. My account ID is c8f7139e2be39e116eb4cdadfa7bdd31...

Deploying Remix Pages failed

The deploy stalls for a while on the first picture, before failing with this error on the second picture. When deploying with github actions, I get a weird experimental flag error, which won't go away even when changing the name of the flag (third picture)....
No description

building pages failed

```18:30:12.333 Using v2 root directory strategy 18:30:12.359 Success: Finished cloning repository files 18:30:13.985 Checking for configuration in a wrangler.toml configuration file (BETA) 18:30:13.986
18:30:14.102 No wrangler.toml file found. Continuing....

Vite CI builds timing out

Hi, didn't want to hijack the other thread (Nuxt builds). My builds are also timing out since this week (?) - not sure if it is because pnpm package upgrades or not - Dependabot is keeping me busy haha. But locally all is fine. Vite 5.4.3....

How to host multiple pages under the same domain

Let's assume I have a monorepo where each project is a SvelteKit app running on pages. Let's say they run on app1.pages.dev, app2.pages.dev, app3.pages.dev, and so on. I now also have a worker that I deploy to handle all this. Before doing that I have to point out that one page is special, it runs on homepage.pages.dev and it will be the default page to show (when going to /, or any other non-app route)....

Is there a way to view analytics of a pages.dev domain?

I can see the analytics for our public domain used in production page, but I would also want to get the network analytics for our .pages.dev domain, is this possible?

How can I access my d1 database in next on pages edge LOCALLY?

I have it working fine during deployment and build, but I can't seem to access it locally and there are no docs on it.

Increased limit on the number of pages for projects

I noticed that each CF account can currently create only 100 pages projects. I would like to increase this limit, but is there an additional charge for existing paid tiers? For example, would I need to subscribe to Pro for 1000 projects or Business for 5000 projects, etc.?