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•15mo ago
Is fetch only there to trigger your scheduled handler on demand?
mattp
mattpOP•14mo ago
Just want to run some scripts that can interact with KV, R2, ... But not mess around with my scheduled job @kian Any idea? 🥺
Want results from more Discord servers?
Add your server