npx skills add ...
npx skills add getsentry/junior --skill nitro
npx skills add getsentry/junior --skill nitro
Build and deploy universal JavaScript servers with Nitro v3. Use when working with nitro.config.ts, defineNitroConfig, defineHandler, defineConfig, server.ts entry, filesystem routing, route rules, useStorage, defineCachedHandler, useDatabase, definePlugin, runtime hooks, Vercel/Cloudflare deployment, or migrating from Nitro v2/nitropack.
Build, configure, and deploy Nitro v3 applications using correct APIs and patterns.
| Request type | Read first |
|---|---|
| API surface, handler signatures, imports, config options | references/api-surface.md |
| Setup, routing, caching, storage, plugins, frameworks, common patterns | references/common-use-cases.md |
| Build failures, runtime errors, deployment issues, migration from v2 | references/troubleshooting-workarounds.md |
Load only the reference(s) matching the request. If the task spans categories, load relevant files.
defineHandler from "nitro", not defineEventHandler (v2 API)."nitro/config", "nitro/cache", "nitro/storage", "nitro/database", "nitro/runtime-config", "nitro/types".event.req (Request) for body/headers — not v2 utilities like readBody or getHeader.GET/HEAD requests are cached by defineCachedHandler; other methods bypass automatically.useDatabase and defineTask require experimental feature flags."nitro" package name, not "nitropack" (v2).defineConfig from "nitro" in nitro.config.ts or add nitro() plugin from "nitro/vite" to vite.config.ts.fetch(Request): Response handler from server.ts, or use server.node.ts for Express/Fastify.routes/ or api/ with [param] for dynamic segments and .get.ts/.post.ts for method-specific routes.defineCachedHandler from "nitro/cache" with maxAge and swr options.useStorage(namespace) from "nitro/storage" and configure drivers via storage config.plugins/ directory using definePlugin and hook into request, response, error, or close.preset in config or use NITRO_PRESET env var; Vercel/Netlify/Cloudflare are auto-detected.nitro dev and verify routes respond correctly.nitro build and check .output/server/ contains expected files.etag, cache-control) and 304 responses.defineEventHandler is not defined → use defineHandler from "nitro" (v3 API).Cannot find module 'nitropack' → rename to "nitro" in imports and package.json.routes/ or api/, or verify routes config mapping.references/troubleshooting-workarounds.md.