Erwin
11/24/2022, 10:08 PMrennokki
11/24/2022, 10:18 PMrennokki
11/24/2022, 10:19 PMrennokki
11/24/2022, 10:19 PMrennokki
11/24/2022, 10:19 PMItsWendell
11/24/2022, 11:16 PMErwin
11/25/2022, 12:19 AMarbfay
11/25/2022, 10:48 AM/migrate
, you guess what it does) for all my DOs. What's the best way to do so?HardAtWork
11/25/2022, 11:08 AM/migrate
, and then call it with all of the IDs.arbfay
11/25/2022, 11:13 AMHardAtWork
11/25/2022, 11:14 AMarbfay
11/25/2022, 11:15 AM.list()
function in the DO namespace (any reason?)HardAtWork
11/25/2022, 11:16 AMlist
would basically have to contact every DO-ready colo to collect the dataarbfay
11/25/2022, 11:18 AMHardAtWork
11/25/2022, 11:20 AMCollatz
11/25/2022, 10:42 PMIsaac McFadyen | YYZ01
11/25/2022, 10:46 PMIsaac McFadyen | YYZ01
11/25/2022, 10:46 PMUnsmart | Tech debt
11/25/2022, 10:57 PMCollatz
11/25/2022, 11:43 PMsrb
11/25/2022, 11:43 PMCollatz
11/25/2022, 11:45 PMIsaac McFadyen | YYZ01
11/26/2022, 12:00 AMsrb
11/26/2022, 12:13 AMItsWendell
11/26/2022, 12:54 PMaarhus
11/26/2022, 1:52 PMRafal
11/26/2022, 5:27 PMCannot create binding for class ChannelsDO that is not exported by the script
?
This class is clearly exported in my file. I have also defined new_classes = ["ChannelsDO"]
inside migrations. The suggested --new-class
flag seems to be targeted to Wrangler 1?matt
11/26/2022, 6:22 PMexport class ChannelsDO
inside the scriptRafal
11/26/2022, 6:43 PM[durable_objects]
bindings = [ { name = "CHANNELS", class_name = "ChannelsDO" }, { name = "CHANNEL", class_name = "ChannelDO" }]
I'm using esbuild to bundle multiple TS files into one .mjs. The compiled MJS file ends with:
export { ChannelDO, ChannelsDO, src_default as default, handleRequest };
where ChannelsDO
is a class.Rafal
11/26/2022, 6:44 PMmain
inside wrangler.toml
is pointing to that mjs file