Skip to content

Commit ae43ca1

Browse files
authored
Fix preview URLs on Cloudflare env (#3129)
1 parent 4234289 commit ae43ca1

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

packages/gitbook-v2/wrangler.jsonc

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@
1010
"observability": {
1111
"enabled": true
1212
},
13-
"durable_objects": {
14-
"bindings": [
15-
{
16-
"name": "NEXT_CACHE_DO_QUEUE",
17-
"class_name": "DOQueueHandler"
18-
},
19-
{
20-
"name": "NEXT_TAG_CACHE_DO_SHARDED",
21-
"class_name": "DOShardedTagCache"
22-
}
23-
]
24-
},
2513
"migrations": [
2614
{
2715
"tag": "v1",
@@ -52,19 +40,9 @@
5240
"binding": "GITBOOK_API",
5341
"service": "gitbook-x-prod-api-cache"
5442
}
55-
],
56-
"durable_objects": {
57-
"bindings": [
58-
{
59-
"name": "NEXT_CACHE_DO_QUEUE",
60-
"class_name": "DOQueueHandler"
61-
},
62-
{
63-
"name": "NEXT_TAG_CACHE_DO_SHARDED",
64-
"class_name": "DOShardedTagCache"
65-
}
66-
]
67-
}
43+
]
44+
// No durable objects on preview, as they block the generation of preview URLs
45+
// and we don't need tags invalidation on preview
6846
},
6947
"staging": {
7048
"routes": [

0 commit comments

Comments
 (0)