nitro

द्वारा sentry

नाइट्रो v3 के साथ यूनिवर्सल जावास्क्रिप्ट सर्वर बनाएं और तैनात करें। nitro.config.ts, defineNitroConfig, defineHandler, defineConfig, server.ts… के साथ काम करते समय उपयोग करें।

npx skills add https://github.com/getsentry/junior --skill nitro

Build, configure, and deploy Nitro v3 applications using correct APIs and patterns.

Step 1: Classify the request

Request typeRead first
API surface, handler signatures, imports, config optionsreferences/api-surface.md
Setup, routing, caching, storage, plugins, frameworks, common patternsreferences/common-use-cases.md
Build failures, runtime errors, deployment issues, migration from v2references/troubleshooting-workarounds.md

Load only the reference(s) matching the request. If the task spans categories, load relevant files.

Step 2: Apply core guardrails

  1. Import defineHandler from "nitro", not defineEventHandler (v2 API).
  2. Import config helpers from subpaths: "nitro/config", "nitro/cache", "nitro/storage", "nitro/database", "nitro/runtime-config", "nitro/types".
  3. Use web standard event.req (Request) for body/headers — not v2 utilities like readBody or getHeader.
  4. Never return from middleware unless intentionally terminating the request.
  5. Only GET/HEAD requests are cached by defineCachedHandler; other methods bypass automatically.
  6. useDatabase and defineTask require experimental feature flags.
  7. Use "nitro" package name, not "nitropack" (v2).

Step 3: Implement

  1. For new projects, use defineConfig from "nitro" in nitro.config.ts or add nitro() plugin from "nitro/vite" to vite.config.ts.
  2. For server entry, export a web-compatible fetch(Request): Response handler from server.ts, or use server.node.ts for Express/Fastify.
  3. For filesystem routes, place handlers in routes/ or api/ with [param] for dynamic segments and .get.ts/.post.ts for method-specific routes.
  4. For caching, use defineCachedHandler from "nitro/cache" with maxAge and swr options.
  5. For storage, use useStorage(namespace) from "nitro/storage" and configure drivers via storage config.
  6. For plugins, create files in plugins/ directory using definePlugin and hook into request, response, error, or close.
  7. For deployment, set preset in config or use NITRO_PRESET env var; Vercel/Netlify/Cloudflare are auto-detected.

Step 4: Validate

  1. Run nitro dev and verify routes respond correctly.
  2. Run nitro build and check .output/server/ contains expected files.
  3. For cached routes, verify cache headers (etag, cache-control) and 304 responses.
  4. For storage, verify data persists across requests with configured driver.
  5. For deployment, verify the preset produces correct output format.

Step 5: Troubleshoot

  1. defineEventHandler is not defined → use defineHandler from "nitro" (v3 API).
  2. Cannot find module 'nitropack' → rename to "nitro" in imports and package.json.
  3. Route not matched → check file is in routes/ or api/, or verify routes config mapping.
  4. Middleware returning responses unexpectedly → ensure middleware does not return a value.
  5. For detailed diagnostics, read references/troubleshooting-workarounds.md.

sentry की और Skills

add-ai-integration
sentry
Sentry JavaScript SDK में एक नया AI प्रदाता एकीकरण जोड़ें। नए AI इंस्ट्रुमेंटेशन (OpenAI, Anthropic, Vercel AI, LangChain, आदि) का योगदान करते समय उपयोग करें…
add-cdn-bundle
sentry
निर्दिष्ट सुविधाओं के साथ ब्राउज़र पैकेज के लिए एक नया CDN बंडल बनाएं
agent-prompt
sentry
प्रभावी एजेंट प्रॉम्प्ट और कौशल लिखने के लिए संदर्भ मार्गदर्शिका। नए कौशल बनाते समय, प्रॉम्प्ट गुणवत्ता की समीक्षा करते समय, या वार्डन के प्रॉम्प्ट को समझते समय उपयोग करें।
agents-md
sentry
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता "AGENTS.md बनाएं", "AGENTS.md अपडेट करें", "एजेंट दस्तावेज़ बनाए रखें", "CLAUDE.md सेट अप करें" के लिए कहे, या एजेंट को अद्यतित रखने की आवश्यकता हो...
agents-md
sentry
एजेंट दस्तावेज़ीकरण को 60 पंक्तियों से कम में न्यूनतम और उच्च-सिग्नल बनाएं और बनाए रखें। एजेंट-उन्मुख दस्तावेज़ों के लिए शोध-समर्थित सर्वोत्तम प्रथाओं को लागू करता है; लंबाई बढ़ने पर निर्देश की गुणवत्ता घटती है। तीन मुख्य अनुभागों की आवश्यकता है: पैकेज मैनेजर, फ़ाइल-स्कोप्ड कमांड (प्रति फ़ाइल परीक्षण/लिंट/टाइपचेक), और एजेंट पहचान के साथ कमिट एट्रिब्यूशन। यह न
agents-md
sentry
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता "AGENTS.md बनाएं", "AGENTS.md अपडेट करें", "एजेंट दस्तावेज़ बनाए रखें", "CLAUDE.md सेट अप करें" या एजेंट को बनाए रखने की आवश्यकता हो...
ai-sdk
sentry
ai-sdk — AI एजेंटों के लिए एक इंस्टॉल करने योग्य कौशल, getsentry/webvitals.com द्वारा प्रकाशित।
analytics
sentry
Sentry के फ्रंटएंड UI में analytics इवेंट्स को इंस्ट्रूमेंट और डिस्कवर करें। बटन, पेज, मोडल या कस्टम इंटरैक्शन में ट्रैकिंग जोड़ते समय, नए… परिभाषित करते समय उपयोग करें।