Skip to content

Space DO bindings in wrangler but not exported #246

Description

@arsdehnel

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:

  1. Should the DOs be toggleable while the Spaces stuff is in Alpha? And if so then the template needs to be a little smarter.
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions