albert-zhao
02/23/2021, 10:49 PMeidam | SuperSaaS
02/23/2021, 10:57 PMeidam | SuperSaaS
02/23/2021, 10:58 PMGreg Brimble | Cloudflare Pages
02/23/2021, 11:02 PMeidam | SuperSaaS
02/23/2021, 11:15 PMjed
02/23/2021, 11:28 PMkenton
02/23/2021, 11:35 PMjed
02/23/2021, 11:36 PMjed
02/23/2021, 11:36 PMkenton
02/23/2021, 11:36 PMjed
02/23/2021, 11:37 PMjed
02/23/2021, 11:37 PMexport {Team} from './Team.js'
import {Worker} from './Worker.js'
export default new Worker()
jed
02/23/2021, 11:37 PMkenton
02/23/2021, 11:38 PMkenton
02/23/2021, 11:40 PMGreg Brimble | Cloudflare Pages
02/23/2021, 11:41 PMGreg Brimble | Cloudflare Pages
02/23/2021, 11:44 PMwrangler.toml
. If one of the deployments failed for some reason, I guess that could be annoying, because I could get into an inconsistent state where the Worker script is expecting something different of the DO class script (or vice-versa).jed
02/23/2021, 11:48 PMjed
02/23/2021, 11:52 PMjed
02/23/2021, 11:56 PMimport
.jed
02/23/2021, 11:56 PMjs
import {teams} from '.env'
export default request => {
let id = teams.idFromName('some-name')
return teams.get(id).fetch(request)
}
kenton
02/24/2021, 2:37 AMeidam | SuperSaaS
02/24/2021, 8:10 AMeidam | SuperSaaS
02/24/2021, 8:18 AMtoinbis
02/24/2021, 11:26 AMtoinbis
02/24/2021, 11:30 AMkenton
02/24/2021, 3:36 PMeidam | SuperSaaS
02/24/2021, 3:54 PMeidam | SuperSaaS
02/24/2021, 3:58 PMkenton
02/24/2021, 4:02 PM