mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 16:15:22 +00:00
138 lines
4.3 KiB
JSON
138 lines
4.3 KiB
JSON
{
|
|
"main": ".open-next/worker.js",
|
|
"name": "gitbook-open-v2",
|
|
"compatibility_date": "2025-04-14",
|
|
"compatibility_flags": ["nodejs_compat", "allow_importable_env"],
|
|
"assets": {
|
|
"directory": ".open-next/assets",
|
|
"binding": "ASSETS"
|
|
},
|
|
"observability": {
|
|
"enabled": true
|
|
},
|
|
"env": {
|
|
"preview": {
|
|
"r2_buckets": [
|
|
{
|
|
"binding": "NEXT_INC_CACHE_R2_BUCKET",
|
|
"bucket_name": "gitbook-open-v2-cache-preview"
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"binding": "WORKER_SELF_REFERENCE",
|
|
"service": "gitbook-open-v2-preview"
|
|
},
|
|
{
|
|
"binding": "GITBOOK_API",
|
|
"service": "gitbook-x-prod-api-cache"
|
|
}
|
|
]
|
|
// No durable objects on preview, as they block the generation of preview URLs
|
|
// and we don't need tags invalidation on preview
|
|
},
|
|
"staging": {
|
|
"routes": [
|
|
{
|
|
"pattern": "open-2c.gitbook-staging.com/*",
|
|
"zone_name": "gitbook-staging.com"
|
|
},
|
|
{
|
|
"pattern": "static-2c.gitbook-staging.com/*",
|
|
"zone_name": "gitbook-staging.com"
|
|
}
|
|
],
|
|
"r2_buckets": [
|
|
{
|
|
"binding": "NEXT_INC_CACHE_R2_BUCKET",
|
|
"bucket_name": "gitbook-open-v2-cache-staging"
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"binding": "WORKER_SELF_REFERENCE",
|
|
"service": "gitbook-open-v2-staging"
|
|
},
|
|
{
|
|
"binding": "GITBOOK_API",
|
|
"service": "gitbook-x-staging-api-cache"
|
|
}
|
|
],
|
|
"tail_consumers": [
|
|
{
|
|
"service": "gitbook-x-staging-tail"
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"name": "NEXT_CACHE_DO_QUEUE",
|
|
"class_name": "DOQueueHandler"
|
|
},
|
|
{
|
|
"name": "NEXT_TAG_CACHE_DO_SHARDED",
|
|
"class_name": "DOShardedTagCache"
|
|
}
|
|
]
|
|
},
|
|
"migrations": [
|
|
{
|
|
"tag": "v1",
|
|
"new_sqlite_classes": ["DOQueueHandler", "DOShardedTagCache"]
|
|
}
|
|
]
|
|
},
|
|
"production": {
|
|
"routes": [
|
|
{
|
|
"pattern": "open-2c.gitbook.com/*",
|
|
"zone_name": "gitbook.com"
|
|
},
|
|
{
|
|
"pattern": "static-2c.gitbook.com/*",
|
|
"zone_name": "gitbook.com"
|
|
}
|
|
],
|
|
"r2_buckets": [
|
|
{
|
|
"binding": "NEXT_INC_CACHE_R2_BUCKET",
|
|
"bucket_name": "gitbook-open-v2-cache-production"
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"binding": "WORKER_SELF_REFERENCE",
|
|
"service": "gitbook-open-v2-production"
|
|
},
|
|
{
|
|
"binding": "GITBOOK_API",
|
|
"service": "gitbook-x-prod-api-cache"
|
|
}
|
|
],
|
|
"tail_consumers": [
|
|
{
|
|
"service": "gitbook-x-prod-tail"
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"name": "NEXT_CACHE_DO_QUEUE",
|
|
"class_name": "DOQueueHandler"
|
|
},
|
|
{
|
|
"name": "NEXT_TAG_CACHE_DO_SHARDED",
|
|
"class_name": "DOShardedTagCache"
|
|
}
|
|
]
|
|
},
|
|
"migrations": [
|
|
{
|
|
"tag": "v1",
|
|
"new_sqlite_classes": ["DOQueueHandler", "DOShardedTagCache"]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|