From ae43ca146cdf9edd06080d377e1b12699fec3ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Wed, 9 Apr 2025 16:00:21 +0200 Subject: [PATCH] Fix preview URLs on Cloudflare env (#3129) --- packages/gitbook-v2/wrangler.jsonc | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/packages/gitbook-v2/wrangler.jsonc b/packages/gitbook-v2/wrangler.jsonc index 33ca97860..1aa37caad 100644 --- a/packages/gitbook-v2/wrangler.jsonc +++ b/packages/gitbook-v2/wrangler.jsonc @@ -10,18 +10,6 @@ "observability": { "enabled": true }, - "durable_objects": { - "bindings": [ - { - "name": "NEXT_CACHE_DO_QUEUE", - "class_name": "DOQueueHandler" - }, - { - "name": "NEXT_TAG_CACHE_DO_SHARDED", - "class_name": "DOShardedTagCache" - } - ] - }, "migrations": [ { "tag": "v1", @@ -52,19 +40,9 @@ "binding": "GITBOOK_API", "service": "gitbook-x-prod-api-cache" } - ], - "durable_objects": { - "bindings": [ - { - "name": "NEXT_CACHE_DO_QUEUE", - "class_name": "DOQueueHandler" - }, - { - "name": "NEXT_TAG_CACHE_DO_SHARDED", - "class_name": "DOShardedTagCache" - } - ] - } + ] + // No durable objects on preview, as they block the generation of preview URLs + // and we don't need tags invalidation on preview }, "staging": { "routes": [