Can I have route trigger only on local development?

Something like:
export default {
scheduled: myScheduledJob,
...( DEV && { fetch: myDevHandlers } )
}
export default {
scheduled: myScheduledJob,
...( DEV && { fetch: myDevHandlers } )
}
2 Replies
kian
kian•17mo ago
Is fetch only there to trigger your scheduled handler on demand?
mattp
mattpOP•17mo ago
Just want to run some scripts that can interact with KV, R2, ... But not mess around with my scheduled job @kian Any idea? 🥺

Did you find this page helpful?