@@ -210,6 +210,10 @@ export const CoreSharedOptionsSchema = z.object({
210210 unsafeModuleFallbackService : ServiceFetchSchema . optional ( ) ,
211211 // Keep blobs when deleting/overwriting keys, required for stacked storage
212212 unsafeStickyBlobs : z . boolean ( ) . optional ( ) ,
213+ // Enable directly triggering user Worker handlers with paths like `/cdn-cgi/handler/scheduled`
214+ unsafeTriggerHandlers : z . boolean ( ) . optional ( ) ,
215+ // Enable logging requests
216+ logRequests : z . boolean ( ) . default ( true ) ,
213217} ) ;
214218
215219export const CORE_PLUGIN_NAME = "core" ;
@@ -746,6 +750,14 @@ export function getGlobalServices({
746750 const serviceEntryBindings : Worker_Binding [ ] = [
747751 WORKER_BINDING_SERVICE_LOOPBACK , // For converting stack-traces to pretty-error pages
748752 { name : CoreBindings . JSON_ROUTES , json : JSON . stringify ( routes ) } ,
753+ {
754+ name : CoreBindings . TRIGGER_HANDLERS ,
755+ json : JSON . stringify ( ! ! sharedOptions . unsafeTriggerHandlers ) ,
756+ } ,
757+ {
758+ name : CoreBindings . LOG_REQUESTS ,
759+ json : JSON . stringify ( ! ! sharedOptions . logRequests ) ,
760+ } ,
749761 { name : CoreBindings . JSON_CF_BLOB , json : JSON . stringify ( sharedOptions . cf ) } ,
750762 { name : CoreBindings . JSON_LOG_LEVEL , json : JSON . stringify ( log . level ) } ,
751763 {
@@ -795,13 +807,8 @@ export function getGlobalServices({
795807 name : SERVICE_ENTRY ,
796808 worker : {
797809 modules : [ { name : "entry.worker.js" , esModule : SCRIPT_ENTRY ( ) } ] ,
798- compatibilityDate : "2023-04-04" ,
799- compatibilityFlags : [
800- "nodejs_compat" ,
801- "service_binding_extra_handlers" ,
802- "brotli_content_encoding" ,
803- "rpc" ,
804- ] ,
810+ compatibilityDate : "2025-03-17" ,
811+ compatibilityFlags : [ "nodejs_compat" , "service_binding_extra_handlers" ] ,
805812 bindings : serviceEntryBindings ,
806813 durableObjectNamespaces : [
807814 {
0 commit comments