refactor: replace Discord Gateway DO with Interaction Endpoint

This commit is contained in:
RhenCloud 2026-08-03 03:02:42 +08:00
parent 9bb9cb1444
commit d540d465d1
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
27 changed files with 834 additions and 964 deletions

View file

@ -3,9 +3,6 @@
"main": "src/index.ts",
"compatibility_date": "2025-01-01",
"compatibility_flags": [],
"vars": {
"DISCORD_GATEWAY_ENABLED": "true"
},
"build": {
"command": "cd admin && bun install --frozen-lockfile && bun run generate"
},
@ -20,18 +17,10 @@
"*/5 * * * *"
]
},
"durable_objects": {
"bindings": [
{
"name": "DISCORD_GATEWAY",
"class_name": "DiscordGateway",
},
],
},
"migrations": [
{
"tag": "v1",
"new_sqlite_classes": [
"tag": "v2",
"deleted_classes": [
"DiscordGateway"
],
},