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

Possible to force geographic location for worker / workflow invocation?

I notice in a workflow that's being executed via cron that it's being invoked in datacenters in Poland or Singapore. This poses a problem as I have a restriction at the domain level that contains my workers to reject all traffic from outside the US (this is a US-specific application / integration). What this means is that if my workflow is invoked and run on a non-US datacenter and proxies a fetch request to another worker on my domain, those requests are being rejected since the workflow worker is being invoked by Cloudflare's cron from outside the US. I have mitigated this by adding a header to these requests and creating another security rule to allow these requests through if they contain the header but it feels... janky. Instead, is it possible to force invocation of a specific domain's workers (or do this on the worker itself) only use US datacenters?...

Manage Variable and Secrets from cli/API

Hi all 👋 I’m working with a Worker which is a Nuxt App and need some clarity around managing environment variables: • I already use wrangler.toml/jsonrc for build/deploy. • I’d like to automate updating Variables & Secrets for the Worker. • I don’t want to use Secrets Store or secret_text—just plain Variables & Secrets like those in the dashboard....

Error running npm run preview with OpenNext + Cloudflare (setNextjsServerWorkingDirectory failure)

Hi, I’m trying to run my Next.js app with OpenNext + Cloudflare preview (npm run preview), but I’m hitting a runtime error. Environment: Next.js: [^14.0.4]...

Tanstack Start + env: Redirected configurations cannot include environments

Hello everyone, I have been trying to implement environments in my current project running Tanstack Start. Deployments were working smoothly until I added deployments and I started getting build errors in the cloudflare CD. ``` 12:19:12.983 Using redirected Wrangler configuration....

Vite + React template internal server error

when running npm run dev on the Vite + react framework template from cloudflare I get a "failed to load PostCSS config" error. the exact message is: ``` [plugin:vite:css] Failed to load PostCSS config (searchPath: C:/Users/Fluff/Desktop/ViteReact/portfolio): [Error] EISDIR: illegal operation on a directory, read...

Sourcemaps not getting generated

I am running bunx wrangler deploy --config cloudflare_workers/api/wrangler.json --outdir dist --upload-source-maps --var SENTRY_RELEASE:$(sentry-cli releases propose-version), but this doesn't generate a source map. Here is the config file: https://pastebin.com/FYCswAqj ...
No description

Elevated client disconnected by type: cancelled for cloudflare worker consumer.

Hi, we're serving cloudflare consumer with queues. For some reason, we're experiencing elevated client disconnected by type: cancelled fron consumer worker and this failure is undetectable by error logs and not retriable automatically. Can I get a help on this? What should we do to reduce client disconnted cases? the client is not our end users. I'm thinking this is related to the durable objects, which is underlying infrastructure of cloudflare queues....

Receiving HTTP 526 Error from worker request not observed elsewhere

I'm making the following request https://halostats.svc.halowaypoint.com:443/hi/players/xuid(2533274844642438)/matches?type=2&count=10&start=0 Locally without the necessary authentication it will return HTTP 401, but when executing on cloudflare worker I'm receiving a HTTP 526 error. Other websites that make use of the endpoint seem to be working fine so it appears to be a cloudflare worker issue?...

Issue with PR Preview deployment for MkDocs Site

Hi! I’m using Cloudflare Workers to host a documentation site I built with MkDocs Material and I’ve encountered some confusion regarding PR previews and the site/ folder. Currently, for the PR preview links to appear in GitHub, my repository requires the site/ folder to exist at the root. This folder contains the HTML, CSS, and JS generated by running mkdocs build locally. Without it, the preview link does not appear, even though the Markdown and asset changes are already tracked in the repository....

Workers "Build Cache" not working in monorepos + pnpm

I have a monorepo, setup with Turborepo with the following structure ``` ├── apps │ ├── api (Hono)...

Preview Builds don't have access to environment variables and secrets

Hi folks. I'm running into a strange issue where my preview builds don't have access to environment variables and build secrets that I set up on the dashboard. As a result of this all preview builds are failing....

New worker Rate limit

After rare limiting a user, does the requests from him still invoke the worker or not ?

Workers caching and sec-fetch-mode: navigate

I've got a worker route that caches GET requests when sec-fetch-mode: navigate header is present and not otherwise. I'm not doing anything with that header in the worker - it's just a proxy that adjusts some cookies (backend-for-frontend pattern).
Anyone seen anything like this?...

Tunnel's url that i create keeps redirecting to the right url but wrong port

As previously explained my tunnel's url keeps redirecting to the right url but the wrong port even after I delete the tunnel and cloudflared install on my machine, it still redirects to an old port I used. Sorry for the bother.

How do we add sentry to WorkerEntrypoint

Im using service binding workers but the errors aren't propagating to other workers (WorkerEntryPoint). How do we do it? Thanks...

Adding, editing, and removing bindings in workers UI does not work - immediate error page

Trying to add, edit, or remove bindings to any other Cloudflare service in workers on the Cloudflare website just crashes and says “refresh the page to try again”. I’ve logged out and back in, tried different browsers, etc....

Langgraph Postgres and Redis checkpointer/persistence don't work with workers

I'm trying to build an API that uses langgraph in a CF worker. It works fine, but when I add langgraph persistence via postgres or redis, I get the following error. ``` Error: The Workers runtime canceled this request because it detected that your Worker's code had hung and would never generate a response. Refer to: https://developers.cloudflare.com/workers/observability/errors/ at async Object.fetch (file:///home/cloudflare-workers/node_modules/.pnpm/miniflare@4.20250823.1/node_modules/miniflare/dist/src/workers/core/entry.worker.js:4346:22)...

Secret store in envVars in container?

I'm trying to forward an api-key from secret store to container using envVars, as in the example in the documentation, but struggle to get it working. For me it seems that the secret store-property needs to accessed async, so it doesn't resolve before creating the container instance?

Next 14 on Pages stopped working.

Hey! I'm hosting my Next.js 14 applications on Cloudflare Pages, and suddenly the pages stopped working. The client loads up, but all API requests to the server result in 500/400/405 errors. I hope this is the correct thread to post issues on Cloudflare Pages, if not please point me to the correct location! I've even switched to the new npx opennextjs-cloudflare build and still have the same issue! The build completes successfully with "Success: Your site was deployed!" but the apps aren't working....