kent
CDCloudflare Developers
•Created by kent on 11/20/2023 in #workers-help
Access to KV from `wrangler dev` to test Cron Worker
Setting up a Cron Worker for the first time, long time Workers user.
I have my bindings setup properly in my
wrangler.toml
file, but when I try and access a KV from my Cron Worker, scheduler
code, I get undefined.
I am running this via wrangler dev
and have read that this has a lot of issues and doesn't really replicate prod. Can anyone confirm or deny?
If you can't access and test those locally, how do you debug Cron Workers that use KV without constantly deploying them.2 replies