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

Cannot recover MFA.

I added a header with the token the support team sent me to my email https://www.support.cloudflare.com/support/s/case/500Nv00000LvuG5 , but now I cannot contact with them. Can someone help me? we are a bit of desperate, we have in prod this domain and needs to pay the invoices.

Remix deployment with cloudflare vite plugin - only static client-side assets are supported?

Hi, Is there a way to also deploy the server side loaders to workers with the cloudflare vite plugin? For me it only uploads the client side stuff. Thank you! ...

Could not create remote preview session on your account

Hi, I'm using honojs and Cloudflare workers and I got this issue when I ran "wrangler dev --remote". It was working yesterday and now its not, I haven't changed anything. Can any one help please?

Set up issue

Hi, I’m new to Cloudflare Workers. After signing up, I’m still in confused about what to click next to create my free API or set up my project. Can someone please guide me step by step from the dashboard? I really need help details cause I'm zero level coding person but still want to try my coding level. Thank you.

A Little Confued About Agents Schedule

Hello, I'm confused scheduling tasks with the Agents SDK, if there's a new scheduled tasks, for example the "checkFlights" function, and its supposed to be called 10 seconds in the future, why i can't see in the console.log the text: "Checking flight ${data.flight} for ${data.date}", it seems like the function is not being called, what's the correct way to make the function to be called/executed after the 10 seconds?, is there something wrong with my code?, I have already copied and pasted the examples from cloudflare but the callback fn is not being called. Thank you....
No description

when using workers, does cloudflare have to have access to your source code?

It seems to push to workers, you have to give cloudflare access to github to get the code into the system. Is it possible for me to compile my worker locally, and push the binary? (Say I am using rust)...

How to source process.env in monorepo in a worker?

I have a simple email worker. My registry imported from another package is erroring by not finding the env vars that are being parsed I am running the script in package.json "dev:email": "dotenv -e ../../.env -- bun run wrangler dev -c src/cloudflare/email/wrangler.jsonc", I can confirm that dotenv is picking up the env file...
No description

Log previews missing

Why are my log previews missing all of a sudden, I now need to expand each log line in order to get the detail. Is there a setting I can change?
No description

WebSocket refusing to connect (1006)

HTTP error 500, WS error 1006 Server code: ```ts const pair = new WebSocketPair(); const [client, server] = Object.values(pair);...
No description

Stop wrangler from opening PR's in my github repo

I have two environments defined for my worker "mainnet" and "testnet", every time a build is triggered wrangler opens two PR's to my repo one to change the top level name in my wragler.jsonc to end with -mainnet and one to change it to -testnet

error 526

help me please
No description

Sharing a D1 Database in a monorepo

I am building a project that has a public facing React Router app, a backoffice app and a background worker service. All of them built on Workers. All of these should have the ability to access a D1 database for various business logic. I thought about having a shared package that handles the db logic. However, not sure how this would work with local emulation of D1? I am also thinking that I am overcomplicating this and exposing API endpoints in the background worker would be the best solution......

When i create a worker, how can i use the worker within my pages functions domain?

I have some pages functions that are under route /functions/api/function.js, this works great, but in some cases i need a seperate worker, how do i then configure the new worker to be under the same route as my other functions? i.e. /functions/api/workerfunction.js

Error with Astro + Workflows

I'm trying to integrate workflows with astro but getting this error:
Worker "workflows:workflows-starter"'s binding "USER_WORKFLOW" refers to service "core:user:" with a named entrypoint "MyWorkflow", but "core:user:" has no such named entrypoint
Worker "workflows:workflows-starter"'s binding "USER_WORKFLOW" refers to service "core:user:" with a named entrypoint "MyWorkflow", but "core:user:" has no such named entrypoint
using the following adapter:...

Pocketbase on CF Workers

Hi, just wondering whether it's possible to deploy pocketbase to CF Workers.

Reusing DB instance with process.env

Hi everyone, now that accessing process.env is possible, when I create a db file with a connection to the db: ```ts export const queryClient = postgres(process.env.DATABASE_URL); export const db = drizzle({ client: queryClient,...

Deploy to Cloudflare produces invalid wrangler.json configuration

I was thrilled to read that the deploy button auto provisions required resources, so I tried to deploy a worker, but the experience isn't all that great unfortunately. I ran into many errors like "Invalid bucket name" and then "xy already exists" because the wizard is not cleanup up on failure. After many attempts using only "-" or "_" in names, I tried without any special characters and it finally deployed! But it's not working, because the produced configuration is invalid: ```json {...

How to upgrade to Standard usage model?

Hello! I'm currently on a Pro Plan and would like to upgrade to the Standard usage model for my workers/pages functions. - What is the easiest way to do that? - Are there any additional costs than the $5 +$0.30 per additional million? - Are there any additional agreements when signing up for the Standard usage model?...

How do I set secrets and environment variables for specific environments in the Workers dashboard?

I'm currently migrating a Pages project to Workers, and I'm unsure how to configure secrets or environment variables for specific environments—like production or preview—within the Workers dashboard. In the Pages settings, there's a "Choose environment" dropdown that makes this straightforward, but I can't find a similar option in the Workers settings....

Separate build-time variables per environment

Hi! I'm trying to migrate my SvelteKit app from Cloudflare Pages to Cloudflare Workers and Workers Builds. However, I'm having some issues with build-time environment variables. SvelteKit supports client-side environment variables by importing from $env/static/public. However, these need to be available at build time because they are injected into the static Vite bundle. With Cloudflare Pages, this was easy to handle, since the specified environment variables were available both at build-time and at run-time. However, with Workers and Workers Builds, I understand that environment variables specified in the dashboard or in the wrangler.jsonc file are only available at run-time, not at build-time....