mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
8 lines
276 B
TypeScript
8 lines
276 B
TypeScript
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);
|
|
});
|
|
});
|