PartyKit Durable Objects with Cloudflare Free Plan

Đang mở
#295 3 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
cloud

Hướng nghiên cứu

Tái hiện deployment từ fixture todo-sync bằng partykit.json được cung cấp và npx partykit deploy --domain partykit.mydomain.com. Bắt đầu bằng cách theo dõi cách cấu hình và các migration của Durable Objects được xử lý, sau đó xác minh rằng deployment hoạt động trên gói miễn phí của Cloudflare mà không gặp lỗi new_sqlite_classes đã được báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
1.3k
Fork
84
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudflare/partykit

Tất cả issue của cloudflare/partykit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.