Skip to content

Commit 81e223b

Browse files
author
Nicolas Dorseuil
committed
remove useless DO migration
1 parent 96d5017 commit 81e223b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

packages/gitbook-v2/openNext/customWorkers/defaultWrangler.jsonc

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,15 @@
6767
],
6868
"durable_objects": {
6969
"bindings": [
70+
// We do not need to define migrations for external DOs,
71+
// In fact, defining migrations for external DOs will crash
7072
{
7173
"name": "NEXT_TAG_CACHE_DO_SHARDED",
7274
"class_name": "DOShardedTagCache",
7375
"script_name": "gitbook-open-v2-staging"
7476
}
7577
]
7678
},
77-
"migrations": [
78-
{
79-
"tag": "v1",
80-
"new_sqlite_classes": ["DOShardedTagCache"]
81-
}
82-
],
8379
"tail_consumers": [
8480
{
8581
"service": "gitbook-x-staging-tail"
@@ -102,18 +98,14 @@
10298
"durable_objects": {
10399
"bindings": [
104100
{
101+
// We do not need to define migrations for external DOs,
102+
// In fact, defining migrations for external DOs will crash
105103
"name": "NEXT_TAG_CACHE_DO_SHARDED",
106104
"class_name": "DOShardedTagCache",
107105
"script_name": "gitbook-open-v2-production"
108106
}
109107
]
110108
},
111-
"migrations": [
112-
{
113-
"tag": "v1",
114-
"new_sqlite_classes": ["DOShardedTagCache"]
115-
}
116-
],
117109
"tail_consumers": [
118110
{
119111
"service": "gitbook-x-prod-tail"

0 commit comments

Comments
 (0)