Local development · Cloudflare for Platf...

is there a local dev updated example (https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/get-started/developing-with-wrangler/ doesn't work (ts or js)? Is there typescript support or should everything be js?
Cloudflare Docs
Local development · Cloudflare for Platforms docs
To test your Dispatch Worker, user Worker and Outbound Worker before deploying to production, you can use Wrangler for development and testing.
6 Replies
darkpool
darkpool3w ago
what problem are you running into? I got it working a few weeks ago so happy to help ts is fine. wrangler.jsonc is not supported though so make sure to use .toml
spider
spiderOP3w ago
that's a good start, was using jsonc per the doc. Will give it a try with toml. Thanks
darkpool
darkpool3w ago
np
olafg
olafg2w ago
JSONC is in the docs, why would it not work? I am trying to move from toml mess to jsonc but facing some issues
darkpool
darkpool2w ago
it does not work because wfp uses wrangler@dispatch-namespaces-dev branch which does not support it. it might be supported deployed but if you want to follow the local setup guide you need to use .toml

Did you find this page helpful?