一键导入
content-sdk-route-configuration
App Router catch-all at src/app/[site]/[locale]/[[...path]]/page.tsx; setRequestLocale required.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
App Router catch-all at src/app/[site]/[locale]/[[...path]]/page.tsx; setRequestLocale required.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | content-sdk-route-configuration |
| description | App Router catch-all at src/app/[site]/[locale]/[[...path]]/page.tsx; setRequestLocale required. |
Detail: AGENTS-router-specifics.md#routing-site--locale--path
Read first: src/app/[site]/[locale]/[[...path]]/page.tsx
[site]/[locale]/[[...path]]/page.tsxsetRequestLocale(${site}_${locale}) at top of pageparams (Promise in Next.js 15+)Docs: Content SDK.
Layout data from getPage/getComponentData; path/locale from extractPath/context.
Registers components in .sitecore/component-map.ts for Pages Router layout and editing.
Creates new Sitecore components under src/components/. Pages Router; map auto-regenerates on dev/build.
Multiple renderings of one component type; regenerate component map after changes.
Next.js i18n via next.config.js; locale from context.locale in data methods.
Preview/editing for Pages Router via context.preview and context.previewData in [[...path]].tsx.