HardAtWork
02/19/2023, 11:37 AMbkyerv
02/19/2023, 11:42 AMbkyerv
02/20/2023, 4:55 AMLarry
02/20/2023, 11:44 AMbkyerv
02/21/2023, 5:15 AMcrabmusket
02/21/2023, 11:58 PMeparrot
02/22/2023, 4:00 AMlet value: number = await this.state.storage?.get("value") || 0;
is there something else I have to do to get my local environment to persist?zegevlier
02/22/2023, 8:52 AM--persist
flag to the wrangler dev command to make it persist over restarts though.Skye
02/22/2023, 11:14 AMSkye
02/22/2023, 11:15 AMeparrot
02/22/2023, 11:15 AMeparrot
02/22/2023, 11:15 AMeparrot
02/22/2023, 12:42 PMasync fetch(request: Request) {
And the fetch method is called by the worker index.ts as follows:
let resp = await obj.fetch(request.url)
What I don't understand is that request.url is a string but the signature of the Durable Object fetch method requires the parameter to be an instance of a Request. How does this work?kian
02/22/2023, 12:49 PMkian
02/22/2023, 12:49 PMkian
02/22/2023, 12:49 PMeparrot
02/22/2023, 12:56 PMkian
02/22/2023, 12:56 PMeparrot
02/22/2023, 12:57 PMkian
02/22/2023, 12:58 PMkian
02/22/2023, 12:58 PMkian
02/22/2023, 12:58 PMeparrot
02/22/2023, 1:01 PMeparrot
02/22/2023, 1:15 PMeparrot
02/22/2023, 1:17 PMkian
02/22/2023, 1:38 PMkian
02/22/2023, 1:38 PMeparrot
02/22/2023, 1:42 PMeparrot
02/22/2023, 1:43 PM