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

Running out of memory in build step of SvelteKit App (Workers)

We're trying to build our SvelteKit-based app from our Monorepo (Turborepo) with Workers Builds, but are facing the typical Node OOM errors as we're seemingly hitting the 8GB limit inside the build step. Running the same process with busted caches, mirrored commands and everything leads to ~4GB of used memory at the end of bundling the whole application on my local machine (Macbook Pro M1). We haven't had this issue with our old builds with Pages, but wanted to move to the new builds and Workers runtime as it provides better logging out of the box and is now recommended on the CF dashboard....

Error connecting to git account

Hi, I'm getting an error attempting to connect a GitHub organization for Workers GitHub import, however even after uninstalling and reinstalling the Cloudflare integration on GitHub, I keep getting the same error: ``` "errors": [ { "code": 8000010,...

Passing `environment` to platformProxy(@astro/cloudflare) doesn't work as expected

Please find my setup in the screenshots. I expect to get stag D1 Db to be bound with worker when I run astro dev, but right now non of the d1 db is being detected and bound....
No description

Weird behavior, works in localhost

I have the following TypeScript function that INSERT to D1: ``` // eslint-disable-next-line async function handleCreateAccount(data: any, accountRepo: AccountRepo) {...

`override_existing_dns_record` flag ignored in `wrangler deploy`

I'm migrating a Cloudflare Pages project to Workers. In my new wrangler.jsonc config, I've declared the same domains that were previously used (and are still managed) by the old Pages app. When I run wrangler deploy, it fails with: ```...

How to access local HTML file with Puppeteer?

I have a Cloudflare Worker that I want to take a screenshot of a local HTML file. I for the love of god can't figure how to open that file or access any of the file system on a worker. I'm using Cloudflare Browser Rendering to and Cloudflare's fork of Puppeteer. I tried to hard code the HTML and CSS in my JS but I found that I can't easily hard code in a font file which I need. Any ideas?...

Cant debug worker in Webstorm

Hey, I used wrangler to create a Cloudflare worker project. Its stored on wsl. I am using WebStorm (installed on Windows) to develop in it. When setting break points and launching the dev profile in debug mode, the breakpoint doesnt trigger. this ist also true for tests Im writing (with vitest). How can I get debbuging functionality in Webstorm and why does it not work in the first place? Im sorry if this is not a cloudflare specific issue, but I sadly could not get it to work so I would be grateful for help. Thanks a lot. Things I tried: I updated my tsconfig to this:...

When I click on my plan it's saying Internal Server Error

Well when im going on overviews it's saying me to select a plan but when I click on my plan it's saying Internal Server Error

Internal Server Error in my workers full stack proyect

Hello, I have been days trying to resolve my full stack project, every single time it says to me "internal server error", the bindings are okay, the variables too, there's not any syntax error, the logs are okay but the result are fatal

Many "internal error" messages in worker logs

I'm seeing many intermittent internal errors reported with no further context in my logs for a worker.
(The worker is accepting messages over a websocket and writing to a database using the Neon serverless adapter, with intermittent timeouts that I'm trying to debug.) Example - all three logged together at 2025-07-08 13:03:14:027 UTC:...

What are people using for preview environments and durable objects?

Hey all - currently I have a team using Cloudflare Pages and looking at migrating over to Cloudflare Workers shortly. Once on workers - it's a little easier to integrate with Durable Objects - so started looking at that aswell. Our current workflow is that each PR creates a preview environment (sha-worker.pages.dev) where the changes can be shared in isolation and it's all cushty. We can do something similar in workers by having two apps - one that's staging, and another that's for production - but the moment you add a durable object, from my understanding you'll lose the ability to have foo.app-staging.pages.dev and bar.app-staging.pages.dev - so I'm just wondering what the workflows look like for teams using durable objects in production? ...

Crawler Hints not working

I enabled Crawler Hints in Cloudflare a few days ago, expecting it to help Bing discover and crawl new URLs on my website. However, after several days, I haven't noticed any new crawling activity from Bing, and I don't see any new URL submissions being sent from Cloudflare to Bing. Is there anything else I need to configure or any additional steps I should take to ensure Crawler Hints works properly with an OpenNext.js deployment on Workers...

can i recover what i was working on

i was editing code for my worker then it crashed now its all gone šŸ˜”

Workflow completed but did not complete

The workflow status is completed, it only have 1 step and showing 1 step completed. But the step status is running, no output (which should have output if completed), no retry, doesn't appear to be timeouted. What exactly is the status of this?...
No description

Worker service binding RPC TypeScript types

This question is about how to get TypeScript to recognize an RPC method in a service binding worker. Both workers were created in the last week. E.g. ``` // worker B, index.tsx import { WorkerEntrypoint } from 'cloudflare:workers'...

Issue with new CNAME not connecting

Hi everyone! I could really use some help. I’m trying to add new CNAME records as instructed, and I’m sure the values are correct — but they’re not resolving or connecting to anything. I noticed that the CNAME I added doesn't have the little ā€œcloudā€ icon that the other ones have (I'm using Cloudflare, by the way). Does anyone know why the CNAME might not be working or resolving properly?...
No description

Workers SPA to serve nearest index.html

Would it be possible to make worker serve nearest index.html instead of root index.html when hitting a SPA route with "not_found_handling": "single-page-application"? For example for this file structure: ``` /index.html...

How to exclude specific data centers (colos) from Worker routing?

PROBLEM: - Korean customer gets routed to Hong Kong (HKG) data center šŸ‡­šŸ‡° - External API (Gemini API) returns: "User location is not supported for the API use." āŒ - Customer can't use service they paid for ...

Cloudflare Worker with root domain as custom domain issue

Hi there, I have got a Cloudflare Worker mapped to the root domain and whenever I try to access it I get 'UNKNOWN HOST' error and the brower returns "we're having trouble finding that site". If I map a subdomain to the worker it works absoloutely fine. Has anyone else encountered issues using the root domain as a custom domain for a worker? Or is there some different configuration required....

"run_worker_first" not behaving as expected

https://developers.cloudflare.com/workers/static-assets/routing/worker-script/#run-worker-first-for-selective-paths The documentation above says that we can add to our wrangler.toml the run_worker_first line, for static asssets, where we can specify certain paths where the static assets should be routed through the worker first. [assets]...