Skip to content

Upgrading

New package

nitro-processor is a standalone Nitro module. If you are migrating from nuxt-processor, use this page as a reference for terminology changes.

Nuxt → Nitro mapping

nuxt-processornitro-processor
modules: ['nuxt-processor'] in nuxt.config.tsmodules: [nitroProcessor()] in nitro.config.ts
NUXT_REDIS_* runtime envNITRO_REDIS_* runtime env
.nuxt/dev/workers/index.mjs{buildDir}/dev/workers/index.mjs (default node_modules/.nitro/dev/workers/index.mjs)
npx nuxt-processor devnpx nitro-processor dev
processor config key in Nuxt configModule factory options

Runtime config

Redis settings follow Nitro runtime config:

  • REDIS_* — read when the module runs during nitro dev / nitro build.
  • NITRO_REDIS_* — overrides at runtime when you run the built server.

Public API

The public API mirrors nuxt-processor:

  • defineQueue / defineWorker from #processor
  • useProcessor() from #processor-utils
  • Connection resolved from useRuntimeConfig().redis when each queue/worker is created