Deploys the Neighbor agent as good-fences3. worker_loaders (Dynamic Workers) is refused on the free plan, including Wrangler's temporary accounts, so this deploys to a Workers Paid account with a token scoped to this one Worker (.env, gitignored). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
634 B
JSON
19 lines
634 B
JSON
{
|
|
"$schema": "node_modules/wrangler/config-schema.json",
|
|
"name": "good-fences3",
|
|
"main": "./src/worker.ts",
|
|
"compatibility_date": "2026-10-01",
|
|
"compatibility_flags": ["nodejs_compat"],
|
|
"ai": { "binding": "AI" },
|
|
// Dynamic Workers: deploying this binding takes the Workers Paid plan
|
|
"worker_loaders": [{ "binding": "LOADER" }],
|
|
"durable_objects": {
|
|
"bindings": [{ "name": "Neighbor", "class_name": "Neighbor" }]
|
|
},
|
|
"exports": {
|
|
"Neighbor": { "type": "durable-object", "storage": "sqlite" },
|
|
// codemode's runtime, a facet of the agent's DO
|
|
"CodemodeRuntime": { "type": "durable-object", "storage": "sqlite" }
|
|
}
|
|
}
|