70bf21e064
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
21 lines
589 B
JSON
21 lines
589 B
JSON
{
|
|
"name": "durable-objects-exports",
|
|
"main": "src/index.ts",
|
|
// don't provide compatibility_date so that vitest will infer the latest one
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"name": "COUNTER",
|
|
"class_name": "Counter",
|
|
},
|
|
],
|
|
},
|
|
// Declarative DO `exports` — replaces the legacy `migrations` array.
|
|
// `Counter` is also bound (above); `UnboundCounter` is reachable only via
|
|
// `ctx.exports.UnboundCounter`.
|
|
"exports": {
|
|
"Counter": { "type": "durable-object", "storage": "sqlite" },
|
|
"UnboundCounter": { "type": "durable-object", "storage": "sqlite" },
|
|
},
|
|
}
|