nicholai 4a517dfa97 Fix __name polyfill - app now loads without errors
- Added globalThis.__name polyfill in layout.tsx head using dangerouslySetInnerHTML
- Fixed wrangler.jsonc to use inline DO (removed script_name reference)
- Fixed patch-worker.js duplicate detection
- Updated todos: WebSocket still needs debugging but core app is functional
2025-10-09 14:27:03 -06:00

75 lines
1.7 KiB
JSON

/**
* For more details on how to configure Wrangler, refer to:
* https://developers.cloudflare.com/workers/wrangler/configuration/
*/
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "bandit-runner-app",
"main": ".open-next/worker.js",
"compatibility_date": "2025-03-01",
"compatibility_flags": [
"nodejs_compat",
"global_fetch_strictly_public"
],
"assets": {
"binding": "ASSETS",
"directory": ".open-next/assets"
},
"observability": {
"enabled": true
},
/**
* Durable Objects - External Worker
* https://developers.cloudflare.com/durable-objects/
* References the standalone DO worker to avoid bundling issues
*/
"durable_objects": {
"bindings": [
{
"name": "BANDIT_AGENT",
"class_name": "BanditAgentDO"
}
]
},
"migrations": [
{
"tag": "v1",
"new_sqlite_classes": ["BanditAgentDO"]
}
],
/**
* Environment Variables
* https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
*/
"vars": {
"SSH_PROXY_URL": "https://bandit-ssh-proxy.fly.dev",
"MAX_RUN_DURATION_MINUTES": "60",
"MAX_RETRIES_PER_LEVEL": "3"
}
/**
* Secrets (set via: wrangler secret put OPENROUTER_API_KEY)
* - OPENROUTER_API_KEY
* - ENCRYPTION_KEY
*/
/**
* D1 Database (uncomment when database is created)
* wrangler d1 create bandit-runs
*/
// "d1_databases": [
// {
// "binding": "DB",
// "database_name": "bandit-runs",
// "database_id": "YOUR_DATABASE_ID"
// }
// ],
/**
* R2 Bucket (uncomment when bucket is created)
* wrangler r2 bucket create bandit-logs
*/
// "r2_buckets": [
// {
// "binding": "LOGS",
// "bucket_name": "bandit-logs"
// }
// ]
}