mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 16:45:11 +00:00
a1da4f023d
Co-authored-by: Nicolas Dorseuil <nicolas@gitbook.io>
164 lines
5.3 KiB
JSON
164 lines
5.3 KiB
JSON
{
|
|
"main": "default.js",
|
|
"name": "gitbook-open-v2-server",
|
|
"compatibility_date": "2025-04-14",
|
|
"compatibility_flags": [
|
|
"nodejs_compat",
|
|
"allow_importable_env",
|
|
"global_fetch_strictly_public"
|
|
],
|
|
"observability": {
|
|
"enabled": true
|
|
},
|
|
"vars": {
|
|
"NEXT_CACHE_DO_QUEUE_DISABLE_SQLITE": "true"
|
|
},
|
|
"env": {
|
|
"dev": {
|
|
"vars": {
|
|
"STAGE": "dev"
|
|
},
|
|
"r2_buckets": [
|
|
{
|
|
"binding": "NEXT_INC_CACHE_R2_BUCKET",
|
|
"bucket_name": "gitbook-open-v2-cache-preview"
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"binding": "WORKER_SELF_REFERENCE",
|
|
"service": "gitbook-open-v2-server-dev"
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"name": "WRITE_BUFFER",
|
|
"class_name": "R2WriteBuffer"
|
|
}
|
|
]
|
|
},
|
|
"migrations": [
|
|
{
|
|
"tag": "v1",
|
|
"new_sqlite_classes": ["R2WriteBuffer"]
|
|
}
|
|
]
|
|
},
|
|
"preview": {
|
|
"vars": {
|
|
"STAGE": "preview",
|
|
// Just as a test for the preview environment to check that everything works
|
|
"NEXT_PRIVATE_DEBUG_CACHE": "true"
|
|
},
|
|
"r2_buckets": [
|
|
{
|
|
"binding": "NEXT_INC_CACHE_R2_BUCKET",
|
|
"bucket_name": "gitbook-open-v2-cache-preview"
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"binding": "WORKER_SELF_REFERENCE",
|
|
"service": "gitbook-open-v2-server-preview"
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"name": "WRITE_BUFFER",
|
|
"class_name": "R2WriteBuffer",
|
|
"script_name": "gitbook-open-v2-do-preview"
|
|
},
|
|
{
|
|
"name": "NEXT_TAG_CACHE_DO_SHARDED",
|
|
"class_name": "DOShardedTagCache",
|
|
"script_name": "gitbook-open-v2-do-preview"
|
|
},
|
|
{
|
|
"name": "NEXT_CACHE_DO_QUEUE",
|
|
"class_name": "DOQueueHandler",
|
|
"script_name": "gitbook-open-v2-do-preview"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"staging": {
|
|
"r2_buckets": [
|
|
{
|
|
"binding": "NEXT_INC_CACHE_R2_BUCKET",
|
|
"bucket_name": "gitbook-open-v2-cache-staging"
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"binding": "WORKER_SELF_REFERENCE",
|
|
"service": "gitbook-open-v2-server-staging"
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"name": "WRITE_BUFFER",
|
|
"class_name": "R2WriteBuffer",
|
|
"script_name": "gitbook-open-v2-do-staging"
|
|
},
|
|
{
|
|
"name": "NEXT_TAG_CACHE_DO_SHARDED",
|
|
"class_name": "DOShardedTagCache",
|
|
"script_name": "gitbook-open-v2-do-staging"
|
|
},
|
|
{
|
|
"name": "NEXT_CACHE_DO_QUEUE",
|
|
"class_name": "DOQueueHandler",
|
|
"script_name": "gitbook-open-v2-do-staging"
|
|
}
|
|
]
|
|
},
|
|
"tail_consumers": [
|
|
{
|
|
"service": "gitbook-x-staging-tail"
|
|
}
|
|
]
|
|
},
|
|
"production": {
|
|
"r2_buckets": [
|
|
{
|
|
"binding": "NEXT_INC_CACHE_R2_BUCKET",
|
|
"bucket_name": "gitbook-open-v2-cache-production"
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"binding": "WORKER_SELF_REFERENCE",
|
|
"service": "gitbook-open-v2-server-production"
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"name": "WRITE_BUFFER",
|
|
"class_name": "R2WriteBuffer",
|
|
"script_name": "gitbook-open-v2-do-production"
|
|
},
|
|
{
|
|
"name": "NEXT_TAG_CACHE_DO_SHARDED",
|
|
"class_name": "DOShardedTagCache",
|
|
"script_name": "gitbook-open-v2-do-production"
|
|
},
|
|
{
|
|
"name": "NEXT_CACHE_DO_QUEUE",
|
|
"class_name": "DOQueueHandler",
|
|
"script_name": "gitbook-open-v2-do-production"
|
|
}
|
|
]
|
|
},
|
|
"tail_consumers": [
|
|
{
|
|
"service": "gitbook-x-prod-tail"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|