HardAtWork
02/10/2023, 7:09 PMHardAtWork
02/10/2023, 7:09 PMts
get<T = unknown>(
keys: string[],
options?: DurableObjectGetOptions
)
```returns```ts
Promise<Map<string, T>>
sathoro
02/10/2023, 7:10 PMHardAtWork
02/10/2023, 7:12 PMHardAtWork
02/10/2023, 7:12 PMHardAtWork
02/10/2023, 7:12 PMHardAtWork
02/10/2023, 7:12 PMckoeninger
02/10/2023, 7:27 PMckoeninger
02/10/2023, 7:36 PMLarry
02/11/2023, 3:37 AMfrankichiro
02/11/2023, 8:06 AMHardAtWork
02/11/2023, 8:15 AMenv.MyDO
, and is described in a Workers service (name = "api")
with the class name MyDurableObject
.
>
> You must have the `api `Workers service running in as another wrangler dev
process elsewhere already in order to reference that object.
- Greg Brimble on Github https://github.com/cloudflare/workers-sdk/pull/1641frankichiro
02/11/2023, 8:37 AM@api
part removed the message about the DO not being found, but the DO does not show up in the context.env
variable in my Pages function. I have my Worker running in a separate process and it lists my DO as an active binding.sathoro
02/11/2023, 8:43 AMenv
variable without a context
?HardAtWork
02/11/2023, 8:46 AMfrankichiro
02/11/2023, 8:53 AMHardAtWork
02/11/2023, 8:55 AMfrankichiro
02/11/2023, 8:55 AMHardAtWork
02/11/2023, 8:55 AMfrankichiro
02/11/2023, 8:56 AMHardAtWork
02/11/2023, 8:56 AMfrankichiro
02/11/2023, 8:57 AMHardAtWork
02/11/2023, 8:57 AMwrangler dev --local
```and
wrangler pages dev ./public --do MyDO=MyDurableObject@api
```frankichiro
02/11/2023, 9:17 AMHardAtWork
02/11/2023, 9:26 AMfrankichiro
02/11/2023, 9:53 AMwrangler dev
instead of wrangler dev --local
and this made all the difference.HardAtWork
02/11/2023, 10:04 AMwrangler
registry.johtso
02/11/2023, 2:21 PMSkye
02/11/2023, 2:24 PMjohtso
02/11/2023, 2:24 PM