We need env variables for various service bindings in workers, such as accessing KV or durable objects
Describe the solution you'd like
Provide the request object and env variables in inngest ctx so that we could use them or create our own middleware
Describe alternatives you've considered
As a workaround i'm using globals for cloudflare resource bindings. This is NOT recommended due to the way workers are isolated.
Is your feature request related to a problem? Please describe. Inngest client & functions should provide the request object & env variables
Describe the solution you'd like Provide the request object and env variables in inngest ctx so that we could use them or create our own middleware
Describe alternatives you've considered As a workaround i'm using globals for cloudflare resource bindings. This is NOT recommended due to the way workers are isolated.
Additional context Please see https://discord.com/channels/842170679536517141/1171064362044248154/1171102364850192405
cc: @jpwilliams