vans163
04/27/2021, 2:41 AMvans163
04/27/2021, 2:41 AMUnsmart | Tech debt
04/27/2021, 5:01 AMerror: Found argument '--new-class' which wasn't expected, or isn't valid in this context
matt
04/27/2021, 5:17 AMUnsmart | Tech debt
04/27/2021, 5:33 AMvans163
04/27/2021, 12:24 PMvans163
04/27/2021, 12:25 PMvans163
04/27/2021, 12:25 PMttraenkler
04/27/2021, 2:49 PMbrett
04/27/2021, 3:04 PMgetAssetFromKV
only uses the FetchEvent to grab the request and to use waitUntil, so it could be adapted to work from a DO and hit the same KV objects.ttraenkler
04/27/2021, 5:15 PMttraenkler
04/27/2021, 5:23 PMBaronium
04/27/2021, 5:25 PMbrett
04/27/2021, 5:29 PMttraenkler
04/27/2021, 5:30 PMpreethi
04/27/2021, 5:31 PMbrett
04/27/2021, 5:32 PMgetAssetFromKV
code you mentioned only used the request
and waitUntil
fields, which are both available to DOs (the latter is on the state
provided to the constructor) https://developers.cloudflare.com/workers/runtime-apis/durable-objects#durable-object-class-definitionbrett
04/27/2021, 5:33 PMttraenkler
04/27/2021, 5:35 PMttraenkler
04/27/2021, 5:36 PMbrett
04/27/2021, 5:36 PMfetch
(context) that contains a waitUntil
and other fields. TILbrett
04/27/2021, 5:38 PMBaronium
04/27/2021, 5:38 PMpreethi
04/27/2021, 5:44 PMbrett
04/27/2021, 5:47 PMttraenkler
04/27/2021, 7:43 PMttraenkler
04/27/2021, 7:48 PMbrett
04/27/2021, 8:22 PMmatt
04/27/2021, 8:22 PM