Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions chitty-marketplace-skill/backend/wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// chittyos-marketplace-skill — Cloudflare Workers configuration
{
"name": "chittyos-marketplace-skill",
"main": "src/index.ts",
"compatibility_date": "2024-11-09",
"node_compat": true,
"env": {
"staging": {
"route": "marketplace-staging.chitty.cc/*"
},
"production": {
"route": "marketplace.chitty.cc/*"
}
},
"kv_namespaces": [
{
"binding": "SUBSCRIPTION_CACHE",
"id": "marketplace_subscription_cache",
"preview_id": "marketplace_subscription_cache_preview"
}
],
"vars": {
"ENVIRONMENT": "development",
"SKILL_VERSION": "1.0.0"
}
}
19 changes: 0 additions & 19 deletions chitty-marketplace-skill/backend/wrangler.toml

This file was deleted.

33 changes: 33 additions & 0 deletions chitty-marketplace-skill/wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// chittyos-marketplace-skill — Cloudflare Workers configuration
{
"name": "chittyos-marketplace-skill",
"main": "src/index.ts",
"compatibility_date": "2024-11-09",
"node_compat": true,
"env": {
"staging": {
"route": "marketplace-staging.chitty.cc/*"
},
"production": {
"route": "marketplace.chitty.cc/*"
}
},
"kv_namespaces": [
{
"binding": "SUBSCRIPTION_CACHE",
"id": "marketplace_subscription_cache",
"preview_id": "marketplace_subscription_cache_preview"
}
],
"d1_databases": [
{
"binding": "DB",
"database_name": "marketplace-subscriptions",
"database_id": "marketplace_subscriptions_db"
}
],
"vars": {
"ENVIRONMENT": "development",
"SKILL_VERSION": "1.0.0"
}
}
24 changes: 0 additions & 24 deletions chitty-marketplace-skill/wrangler.toml

This file was deleted.

95 changes: 95 additions & 0 deletions project-awareness/cloudflare-worker/wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
// chittyops-project-awareness — Cloudflare Workers configuration

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep wrangler.toml until deploy script accepts JSONC

Switching this worker to wrangler.jsonc while deleting wrangler.toml breaks the existing deployment flow in project-awareness/deployment/deploy-cloudflare-optimized.sh: validate_prerequisites() exits if $WORKER_DIR/wrangler.toml is missing (lines 68–70), so deployments now fail before any setup runs. In the current repo state, this migration is incomplete unless that script is updated to accept wrangler.jsonc (or a compatibility wrangler.toml is retained).

Useful? React with 👍 / 👎.

{
"name": "chittyops-project-awareness",
"main": "src/worker.js",
Comment on lines +1 to +4
"compatibility_date": "2024-08-29",
"compatibility_flags": [
"nodejs_compat"
],
Comment on lines +3 to +8
"routes": [
{
"pattern": "project-awareness.chitty.cc/*",
"custom_domain": true
}
],
"vars": {
"ENVIRONMENT": "production",
"CHITTY_REGISTRY_URL": "https://registry.chitty.cc",
"CHITTYCHAT_API_URL": "https://chittychat.chitty.cc",
"CHITTYID_API_URL": "https://chittyid.chitty.cc",
"CORS_ORIGIN": "*",
"SESSION_TIMEOUT": "3600",
"MAX_SESSIONS_PER_IP": "10",
"RATE_LIMIT_RPM": "1000"
},
"kv_namespaces": [
{
"binding": "SESSION_STORE",
"id": "chittyops_sessions",
"preview_id": "chittyops_sessions_preview"
},
{
"binding": "PROJECT_STORE",
"id": "chittyops_projects",
"preview_id": "chittyops_projects_preview"
},
{
"binding": "CROSS_PLATFORM_SYNC",
"id": "chittyops_cross_platform",
"preview_id": "chittyops_cross_platform_preview"
}
],
"durable_objects": {
"bindings": [
{
"name": "PROJECT_AWARENESS_DO",
"class_name": "ProjectAwarenessDurableObject"
},
{
"name": "SESSION_SYNC_DO",
"class_name": "SessionSyncDurableObject"
}
]
},
"r2_buckets": [
{
"binding": "PROJECT_DATA_BUCKET",
"bucket_name": "chittyops-project-data",
"preview_bucket_name": "chittyops-project-data-preview"
}
],
"analytics_engine_datasets": [
{
"binding": "USAGE_ANALYTICS",
"dataset": "chittyops_usage"
}
],
"build": {
"command": "npm run build"
},
"env": {
"staging": {
"route": {
"pattern": "project-awareness-staging.chitty.cc/*",
"custom_domain": true
},
"vars": {
"ENVIRONMENT": "staging",
"CORS_ORIGIN": "*",
"RATE_LIMIT_RPM": "100"
}
},
"development": {
"vars": {
"ENVIRONMENT": "development",
"CORS_ORIGIN": "*"
}
}
},
"placement": {
"mode": "smart"
},
"limits": {
"cpu_ms": 50000
}
}
92 changes: 0 additions & 92 deletions project-awareness/cloudflare-worker/wrangler.toml

This file was deleted.

Loading