Skip to content

PartyKit Durable Objects with Cloudflare Free Plan #295

@isaacy13

Description

@isaacy13

Can't use PartyKit with durable object on free plan, tried it on personal project & todo-sync fixture

Here's the partykit.json I created (only difference from the repo)

{
    "name": "blah-wss-worker",
    "main": "src/server/index.ts",
    "compatibilityDate": "2025-11-18"
}
isaacyeang@Isaacs-MacBook-Pro todo-sync % CLOUDFLARE_ACCOUNT_ID=ABC CLOUDFLARE_API_TOKEN=XYZ npx partykit deploy --domain partykit.mydomain.com 2>&1
🎈 PartyKit v0.0.115
---------------------
Deploying...
file:///Users/isaacyeang/.npm/_npx/52b6cbf32f24ff5f/node_modules/partykit/dist/bin.mjs:96301
    throw err;
    ^

Error: In order to use Durable Objects with a free plan, you must create a namespace using a `new_sqlite_classes` migration.
    at fetchResult (file:///Users/isaacyeang/.npm/_npx/52b6cbf32f24ff5f/node_modules/partykit/dist/bin.mjs:84998:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async deploy (file:///Users/isaacyeang/.npm/_npx/52b6cbf32f24ff5f/node_modules/partykit/dist/bin.mjs:95750:21)
    at async _Command.<anonymous> (file:///Users/isaacyeang/.npm/_npx/52b6cbf32f24ff5f/node_modules/partykit/dist/bin.mjs:96391:3)

Node.js v23.6.1
Error: In order to use Durable Objects with a free plan, you must create a namespace using a `new_sqlite_classes` migration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions