feat(queue): async delivery via Cloudflare Queues with retry backoff and DLQ

This commit is contained in:
RhenCloud committed 2026-08-15 17:03:35 +08:00
1 parent 737dd7af98
commit 486f38365f
16 files changed
+702 -22

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import type { Env } from "../lib/types";
import { handleQueueBatch } from "../lib/queue/consumer";
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook("cloudflare:queue", async ({ batch, env }) => {
await handleQueueBatch(batch, env as Env);
});
});