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
darkpool2mo 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
spiderOP2mo ago
that's a good start, was using jsonc per the doc. Will give it a try with toml. Thanks
darkpool
darkpool2mo ago
np
olafg
olafg2mo 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
darkpool2mo 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?