Nuxt module (v0.6.3, active development) that provides typed integration with Cloudflare Queues for Nuxt 3+ applications. It auto-generates TypeScript types for queue bindings and consumer payloads, offers a composable for sending jobs, and supports local development via wrangler.toml. Compared to raw @cloudflare/workers-types or wrangler CLI, it offers native Nuxt module configuration and type safety out of the box. Compatible with Nuxt >=3.0.0 <5.0.0.
npm install nuxt-cf-jobsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure a Cloudflare queue in nuxt.config.ts, define a consumer handler, and send jobs from anywhere using the useQueue composable.
Use `cfJobs.queues` configuration instead.
Update calls: from `useQueue('myQueue').send(payload)` to `useQueue().send('myQueue', payload)`Create a separate consumer file per queue and reference it in the module configuration.
Ensure your Cloudflare environment variables and queue bindings are set in your development environment.
Upgrade to Nuxt 3+ or use an older version of this module.
Run `npm install nuxt-cf-jobs` and ensure 'types' is in 'compilerOptions' in tsconfig.json.
Use `const { send } = useQueue()` within `<script setup>` or `defineComponent` setup function.Verify binding name matches the one defined in `cfJobs.queues` and corresponding Cloudflare environment.
Ensure the consumer follows the correct signature: `defineQueueConsumer(async (batch, env, ctx) => {...})`