@@ -210,6 +210,10 @@ export const CoreSharedOptionsSchema = z.object({
210210unsafeModuleFallbackService : ServiceFetchSchema . optional ( ) ,
211211// Keep blobs when deleting/overwriting keys, required for stacked storage
212212unsafeStickyBlobs : 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({
746750const serviceEntryBindings : Worker_Binding [ ] = [
747751WORKER_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({
795807name : SERVICE_ENTRY ,
796808worker : {
797809modules : [ { 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" ] ,
805812bindings : serviceEntryBindings ,
806813durableObjectNamespaces : [
807814{
0 commit comments