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
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
that's a good start, was using jsonc per the doc. Will give it a try with toml. Thanks
np
JSONC is in the docs, why would it not work? I am trying to move from toml mess to jsonc but facing some issues
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
I just made a github issue
https://github.com/cloudflare/cloudflare-docs/issues/21037
GitHub
wrangler@dispatch-namespaces-dev does not support wrangler.jsonc ev...
Existing documentation URL(s) https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/get-started/developing-with-wrangler/ What changes are you suggesting? Ideally add a f...