On August 29th when this PR was merged the create-pds templated wrangler.jsonc got two new Space-related DOs. However, they were not added to the export from index.ts so deploys fail:
✘ [ERROR] A request to the Cloudflare API (/accounts/<account-id>/workers/scripts/<worker-name>) failed.
Cannot apply new-class migration to class 'SpaceDurableObject' that is not exported by script.
[code: 10070]
Easy enough to fix the exports in here but wondered about a couple other things:
- Should the DOs be toggleable while the Spaces stuff is in Alpha? And if so then the template needs to be a little smarter.
- Should there be some way to test that the newly-created worker can be deployed? Not sure about a deploy dry run or anything that could be wired up in a GitHub Action.
On August 29th when this PR was merged the
create-pdstemplatedwrangler.jsoncgot two new Space-related DOs. However, they were not added to the export fromindex.tsso deploys fail:Easy enough to fix the exports in here but wondered about a couple other things: