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

wrangler d1 command debugging

tried with and without a wrangler.toml

if Im using my own bundler config do I

if Im using my own bundler config do I need to pass in the --no-bundle flag? Right now I am just running my own build and then setting the "main" property in wrangler.jsonc to my bundled output at dist/index.js. So to clarify: if I set the entrypoint to my custom bundler's output, do I still need to pass in --no-bundle flag?

Is there a recommended bundle size to

Is there a recommended bundle size to remain below for workers for the start-up time to remain unnoticable? Should I be concerned about increasing 500KB -> 1MB?

Could wrangler [add support for secrets

Could wrangler add support for secrets, so it can verify they exist and generate the correct types? It's scary to yolo adding a new secret and potentially forget to add it to an environment or mispell.

when support for multiple workflows

when support for multiple workflows

Currently wrangler dev with multiple

Currently wrangler dev with multiple workers does not support cross-process bindings. Is this being worked on?

durable objects and workflows with local

durable objects and workflows with local bindings when?

Queues: Broken locally when using multip...

Any plans on supporting queues started with multiple dev commands? (https://github.com/cloudflare/workers-sdk/issues/9795)...

Workflow local dev

should i be able to use workflows when running my app locally with wrangler?

Can wrangler support deploy snippets?

Can wrangler support deploy snippets?

What’s the status on wrangler / vite on

What’s the status on wrangler / vite on SvelteKit?

atm it seems wrangler does not remove

atm it seems wrangler does not remove routes from a previous deployment when i remove them from the config toml. will this be added some time soon?

How can I publish my Astro site with

How can I publish my Astro site with Wrangler to Pages(Workers) from a CI/CD? I'm using a self-hosted git server, not GitHub

Inconsistent docs

i might just be bad at using cloudflare but is it just me or is the documentation super inconsistent and hard to use? like across pages it tells you to use npm run dev, npx wrangler, or wrangler dev interchangeably... also it took me like ten minutes to figure out how to use my remote r2 bucket in local testing because one page told me to add a line to my configuration (didn't work), and several other pages told me to use --arguments with my run dev command instead, but they were all different a...

nvm it works fine if not using default

nvm it works fine if not using default exports interesting

if there was the ability to specify a

if there was the ability to specify a main module config field for the main handler and the ability to add extra modules in the wrangler then that would prevent cloudflare:* module specifiers leaking to node in dev and allow cloudflare specific functionality to occur int its own build environment

Remote bindings likely simplifies the

Remote bindings likely simplifies the situation far more than attempting to accurately simulate everything locally or making developers pick between speed and precision.
The selective opt-in model stands out as especially clever.
Having the option “I want my D1 database calls to hit the real thing, but I’ll mock my KV store locally” is quite impressive. ...

I have changed a few images and replaced

I have changed a few images and replaced them with new ones. Despite npm run dev showing these changes, it seems for some reason npx wrangler dev is still showing the old files, this is despite the fact that I deleted them. Why is this, and how can I make it show the new images?

Developing with multiple Workers

love the multi worker setup we have now https://developers.cloudflare.com/workers/development-testing/multi-workers/ but will this ever work between vite+wrangler? or can we make this work? wrangler dev -c ./app/wrangler.jsonc -c ./api/wrangler.jsonc) does not support cross-process bindings at the moment. so we can at least run 1 vite and 1 wrangler with mutiple configs...

The remote binding does not seem to be

The remote binding does not seem to be working