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

Hi everyone. New to wrangler. Having

Hi everyone. New to wrangler. Having trouble getting setup for local dev in a monorepo. Currently have a sveltekit app that uses cloudflare-adapter. Also have a separate app as a queue consumer. Currently, because the sveltekit app doesn’t use wrangler dev, I’m having trouble accessing local bindings. Reaching out to see if anyone has a recommendation. I have both setup with persist to a local folder, correct environments.

Not sure if anyone has reported this,

Not sure if anyone has reported this, but when I run wrangler types to get my worker-configuration.d.ts, it contains 2 definitions for interface Cloudflare.Env with the second one being blank. This is causing my typescript to not see any of the properites in my Env.

it does but i just set it up in wrangler

it does but i just set it up in wrangler.jsonc, and then update cloudflare type to update the env from get cloudflare context

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