I doubt this works. Did you test it? You are modifying a local variable here, not the actual env inj

I doubt this works. Did you test it? You are modifying a local variable here, not the actual env injected into your worker/DO if it happens to be created in a different machine or even a different isolate/process.
If you want data in your DO that are not in the
env
, you need to pass them in your RPC call to the DO.
Was this page helpful?