跳到主要内容
知仓学习社ZHICANG

nitro

Nitro is the framework-agnostic server toolkit (powering Nuxt) for building and deploying web servers anywhere. Use when working with nitro.config, …

读凭据联网严重 2 · 高危 0antfu/skills

它会碰到什么

扫了多少15 个文本文件,55 KB
它会碰到什么读凭据联网
命中总数8 处
命中统计严重 2 · 高 0 · 中 0 · 低 2
逐条看命中(2 条严重或高危)
  • 严重 references/core-configuration.md:110cred-paths
    - `.env` / `.env.local` are loaded only in `nitro dev`; in production use the platform's env vars.
  • 严重 references/core-configuration.md:110cred-paths
    - `.env` / `.env.local` are loaded only in `nitro dev`; in production use the platform's env vars.

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

> The skill is based on Nitro v3 (beta), generated at 2026-06-22.

Nitro is a framework-agnostic, deployment-agnostic server toolkit powered by H3 v2, unstorage, and Vite/Rolldown/Rollup. It powers Nuxt and works standalone. From one codebase it builds optimized output for Node.js, Bun, Deno, Cloudflare, Vercel, Netlify, and more.

Key capabilities:

  • Filesystem routing with H3 v2 event handlers, dynamic params, and method suffixes.
  • Route rules for declarative caching, headers, redirects, proxying, and auth.
  • Caching layer (cached handlers/functions, SWR) on top of unstorage KV.
  • Runtime config overridable via NITRO_* env vars.
  • Tasks (on-demand + scheduled/cron), WebSockets/SSE, a SQL database layer, and OpenAPI auto-docs.
  • Plugins & lifecycle hooks, custom renderer/server entry, and portable deployment presets.

> Nitro v3 renamed the package nitropacknitro and adopts H3 v2 (web-standard Request/Response). If unsure about v2-vs-v3 APIs, read [advanced-migration](references/advanced-migration.md) first.

Core

| Topic | Description | Reference |

|-------|-------------|-----------|

| Routing | File-based routes, defineHandler, params, middleware, route rules, errors | [core-routing](references/core-routing.md) |

| Configuration | nitro.config.ts, defineConfig, key options, runtime config | [core-configuration](references/core-configuration.md) |

| Storage | unstorage KV, mount points, drivers, dynamic mounts | [core-storage](references/core-storage.md) |

| Cache | defineCachedHandler, defineCachedFunction, SWR, invalidation | [core-cache](references/core-cache.md) |

| Assets | Public assets, compression, server assets via storage | [core-assets](references/core-assets.md) |

| Rendering | Renderer (HTML/SSR), server entry, framework integration | [core-rendering](references/core-rendering.md) |

Features

| Topic | Description | Reference |

|-------|-------------|-----------|

| Plugins & Hooks | definePlugin, runtime lifecycle hooks, error capture | [features-plugins](references/features-plugins.md) |

| Tasks | On-demand & scheduled (cron) tasks, runTask | [features-tasks](references/features-tasks.md) |

| WebSocket & SSE | defineWebSocketHandler, pub/sub, namespaces, event streams | [features-websocket](references/features-websocket.md) |

| Database | Built-in SQL layer via db0, useDatabase, connectors | [features-database](references/features-database.md) |

| OpenAPI | Auto spec from defineRouteMeta, Scalar/Swagger UIs | [features-openapi](references/features-openapi.md) |

Advanced / Deployment

| Topic | Description | Reference |

|-------|-------------|-----------|

| Deployment Presets | Runtimes & providers, compatibility dates, platform integration | [deploy-presets](references/deploy-presets.md) |

| v2 → v3 Migration | Package rename, nitro/* imports, H3 v2 API, preset changes | [advanced-migration](references/advanced-migration.md) |

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 5,891
本站分层T1
该仓技能数19
原文件路径skills/nitro/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 19 个技能