nextjs

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

When 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

如何使用此技能

  1. Identify the topic from the user request.
  2. Open the matching example file in
    examples/
    .
  3. Follow the official Next.js docs linked in the file.
  1. 从用户请求中确定主题
  2. 打开
    examples/
    目录下对应的示例文件
  3. 遵循文件中链接的Next.js官方文档

Mapping Rules (one-to-one with https://nextjs.org/docs)

The
examples/
directory mirrors the official docs structure:
Path rule:
  • Remove numeric prefixes from doc folders and filenames (e.g.,
    01-app
    app
    ).
  • index.mdx
    pages map to
    index.md
    inside the corresponding directory.
examples/
目录镜像了官方文档的结构:
路径规则:
  • 移除文档文件夹和文件名中的数字前缀(例如,
    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、路由、数据获取、缓存、服务端组件、客户端组件、中间件、部署、配置