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

Exceptions not being logged

Hi, I have a Remix app successfully deployed to Cloudflare Pages without issue. The app is running, working, no problem. However, if I throw an exception for any reason, and don't handle it, I get a server error. That's expected. ...

Nuxt build timeout

My nuxt project is timing out in the build step and there are no errors in the logs.

Not able to delete a Pages project

Looks like I'm getting:
"{\n \"result\": null,\n \"success\": false,\n \"errors\": [\n {\n \"code\": 8000000,\n \"message\": \"An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.\"\n }\n ],\n \"messages\": []\n}\n"
"{\n \"result\": null,\n \"success\": false,\n \"errors\": [\n {\n \"code\": 8000000,\n \"message\": \"An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.\"\n }\n ],\n \"messages\": []\n}\n"
...

Getting 500 internal server error - Nextjs

For some reason my application is getting 500 errors when deployed, works fine when building and running locally but fails in production. When i check the logs i get this: ```json {...

How can I enable crawler blocking (and access other Security settings) for a static page?

I'm using a static Cloudflare page for a personal website with a fair amount of embedded media files. I'd like to block crawlers / AI bots if at all possible. Every tutorial I've seen about the recently introduced crawler protection features mentions opening Security/Bots section of the dashboard to access them. However, I can't find it in my dashboard and I can't reach what's shown on the screenshots by following the relative link /?to=/:account/:zone/security/bots/configure from Cloudflare articles (it redirects me to Websites tab of the dashboard, which is empty). I'm not sure why my static page doesn't appear in the list of websites. Is there a specific set of steps I need to follow to opt my Cloudflare page into the Website section of the dashboard and unlock Security features, or are static Cloudflare pages a separate concept not compatible with Cloudflare security dashboard?...

Using `wrangler.toml` and cannot find branch deployment controls

I created a pages project with _worker.js and a few distfiles. I am unable to find the settings referred to in this documentation about build configuration in settings. Is this not supported when using wrangler.toml?

Login

Hello, I would like to know how can I have or create a hosting access so I can provide that to someone that will check my website.

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