Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/template-space-do-exports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-pds": patch
---

Fix deploys of freshly scaffolded workers failing with "Cannot apply new-class migration to class 'SpaceDurableObject' that is not exported by script". The generated worker entry now exports the Space Durable Object classes that its wrangler config declares.
7 changes: 6 additions & 1 deletion packages/create-pds/templates/pds-worker/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
// Re-export the PDS worker - that's all you need!
export { default, AccountDurableObject } from "@getcirrus/pds";
export {
default,
AccountDurableObject,
SpaceDurableObject,
SpaceIndexDurableObject,
} from "@getcirrus/pds";
Loading