Mr. Technician
Mr. Technician
CDCloudflare Developers
Created by Mr. Technician on 10/19/2024 in #workers-help
Cron job runs in dev when it should be disabled
My worker.toml is configured like this:
[triggers]
crons = ["*/10 * * * *"]

[env.dev.triggers]
crons = []
[triggers]
crons = ["*/10 * * * *"]

[env.dev.triggers]
crons = []
But my cron job is applying in both environments. Is there another way of preventing the job from running in dev?
1 replies
CDCloudflare Developers
Created by Mr. Technician on 9/13/2024 in #workers-help
Using a proxy server with fetch
I am rewriting an API which heavily relies on proxies to use workers with hono. I have done some googling and the top results for node.js don't apply here. Is there a way to use an http proxy with the browser native fetch API provided by workers?
2 replies