nextjs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWhen to use this skill
何时使用此技能
Use this skill whenever the user wants to:
- Follow Next.js documentation topics (App Router, Pages Router, architecture, community)
- Implement Next.js routing, data fetching, caching, or deployment
- Use official APIs and configuration options from the docs
当用户有以下需求时,可使用此技能:
- 查阅Next.js文档相关主题(App Router、Pages Router、架构、社区)
- 实现Next.js的路由、数据获取、缓存或部署
- 使用文档中的官方API和配置选项
How to use this skill
如何使用此技能
- Identify the topic from the user request.
- Open the matching example file in .
examples/ - Follow the official Next.js docs linked in the file.
- 从用户请求中确定主题。
- 打开目录下对应的示例文件。
examples/ - 遵循文件中链接的Next.js官方文档。
Mapping Rules (one-to-one with https://nextjs.org/docs)
The directory mirrors the official docs structure:
examples/- → https://nextjs.org/docs
examples/index.md - → https://nextjs.org/docs/app/...
examples/app/... - → https://nextjs.org/docs/pages/...
examples/pages/... - → https://nextjs.org/docs/architecture/...
examples/architecture/... - → https://nextjs.org/docs/community/...
examples/community/...
Path rule:
- Remove numeric prefixes from doc folders and filenames (e.g., →
01-app).app - pages map to
index.mdxinside the corresponding directory.index.md
examples/- → https://nextjs.org/docs
examples/index.md - → https://nextjs.org/docs/app/...
examples/app/... - → https://nextjs.org/docs/pages/...
examples/pages/... - → https://nextjs.org/docs/architecture/...
examples/architecture/... - → https://nextjs.org/docs/community/...
examples/community/...
路径规则:
- 移除文档文件夹和文件名中的数字前缀(例如,→
01-app)。app - 页面对应到相应目录下的
index.mdx。index.md
Resources
资源
Keywords
关键词
Next.js, App Router, Pages Router, routing, data fetching, caching, server components, client components, middleware, deployment, configuration
Next.js、App Router、Pages Router、路由、数据获取、缓存、服务端组件、客户端组件、中间件、部署、配置