mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 05:03:33 +00:00
- Add docs/deploy/cloudflare.mdx with full deployment guide - Add examples/cloudflare/ with working Worker code - Update docs navigation to include Cloudflare option - Update deploy index page with Cloudflare card The example shows how to run sandbox-agent inside a Cloudflare Sandbox with exposed ports for API access. Co-authored-by: Shelley <shelley@exe.dev>
29 lines
608 B
JSON
29 lines
608 B
JSON
{
|
|
"$schema": "node_modules/wrangler/config-schema.json",
|
|
"name": "sandbox-agent-cloudflare",
|
|
"main": "src/cloudflare.ts",
|
|
"compatibility_date": "2025-01-01",
|
|
"compatibility_flags": ["nodejs_compat"],
|
|
"containers": [
|
|
{
|
|
"class_name": "Sandbox",
|
|
"image": "docker.io/cloudflare/sandbox:latest",
|
|
"instance_type": "lite",
|
|
"max_instances": 1
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"class_name": "Sandbox",
|
|
"name": "Sandbox"
|
|
}
|
|
]
|
|
},
|
|
"migrations": [
|
|
{
|
|
"new_sqlite_classes": ["Sandbox"],
|
|
"tag": "v1"
|
|
}
|
|
]
|
|
}
|