When binding to a DO in another worker while using enviroments using { "environment": "staging", "sc
When binding to a DO in another worker while using enviroments using { "environment": "staging", "script_name": "api", ... } does not work
error: Cannot create binding for class in script 'api' that does not exist. [code: 10061]
The following binding does work: { "script_name": "api-staging", ... }
Which is expected - but why can't I use the environment property alternatively? What else is its use?
error: Cannot create binding for class in script 'api' that does not exist. [code: 10061]
The following binding does work: { "script_name": "api-staging", ... }
Which is expected - but why can't I use the environment property alternatively? What else is its use?

