examples/app/api-reference/cli/create-next-app.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / cli / create-next-app**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/cli/create-next-app
examples/app/api-reference/cli/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / cli / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/cli
examples/app/api-reference/cli/next.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / cli / next**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/cli/next
examples/app/api-reference/components/font.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / components / font**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/components/font
examples/app/api-reference/components/form.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / components / form**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/components/form
examples/app/api-reference/components/image.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / components / image**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/components/image
examples/app/api-reference/components/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / components / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/components
examples/app/api-reference/components/link.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / components / link**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/components/link
examples/app/api-reference/components/script.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / components / script**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/components/script
examples/app/api-reference/config/eslint.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / eslint**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/eslint
examples/app/api-reference/config/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config
examples/app/api-reference/config/next-config-js/adapterPath.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / adapterPath**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/adapterPath
examples/app/api-reference/config/next-config-js/allowedDevOrigins.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / allowedDevOrigins**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/allowedDevOrigins
examples/app/api-reference/config/next-config-js/appDir.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / appDir**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/appDir
examples/app/api-reference/config/next-config-js/assetPrefix.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / assetPrefix**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/assetPrefix
examples/app/api-reference/config/next-config-js/authInterrupts.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / authInterrupts**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/authInterrupts
examples/app/api-reference/config/next-config-js/basePath.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / basePath**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath
examples/app/api-reference/config/next-config-js/browserDebugInfoInTerminal.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / browserDebugInfoInTerminal**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/browserDebugInfoInTerminal
examples/app/api-reference/config/next-config-js/cacheComponents.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / cacheComponents**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheComponents
examples/app/api-reference/config/next-config-js/cacheHandlers.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / cacheHandlers**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheHandlers
examples/app/api-reference/config/next-config-js/cacheLife.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / cacheLife**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheLife
examples/app/api-reference/config/next-config-js/compress.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / compress**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/compress
examples/app/api-reference/config/next-config-js/crossOrigin.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / crossOrigin**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/crossOrigin
examples/app/api-reference/config/next-config-js/cssChunking.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / cssChunking**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/cssChunking
examples/app/api-reference/config/next-config-js/devIndicators.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / devIndicators**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/devIndicators
examples/app/api-reference/config/next-config-js/distDir.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / distDir**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/distDir
examples/app/api-reference/config/next-config-js/env.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / env**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/env
examples/app/api-reference/config/next-config-js/expireTime.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / expireTime**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/expireTime
examples/app/api-reference/config/next-config-js/exportPathMap.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / exportPathMap**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/exportPathMap
examples/app/api-reference/config/next-config-js/generateBuildId.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / generateBuildId**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/generateBuildId
examples/app/api-reference/config/next-config-js/generateEtags.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / generateEtags**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/generateEtags
examples/app/api-reference/config/next-config-js/headers.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / headers**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/headers
examples/app/api-reference/config/next-config-js/htmlLimitedBots.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / htmlLimitedBots**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/htmlLimitedBots
examples/app/api-reference/config/next-config-js/httpAgentOptions.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / httpAgentOptions**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/httpAgentOptions
examples/app/api-reference/config/next-config-js/images.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / images**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/images
examples/app/api-reference/config/next-config-js/incrementalCacheHandlerPath.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / incrementalCacheHandlerPath**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/incrementalCacheHandlerPath
examples/app/api-reference/config/next-config-js/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js
examples/app/api-reference/config/next-config-js/inlineCss.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / inlineCss**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/inlineCss
examples/app/api-reference/config/next-config-js/isolatedDevBuild.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / isolatedDevBuild**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/isolatedDevBuild
examples/app/api-reference/config/next-config-js/logging.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / logging**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/logging
examples/app/api-reference/config/next-config-js/mdxRs.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / mdxRs**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/mdxRs
examples/app/api-reference/config/next-config-js/onDemandEntries.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / onDemandEntries**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/onDemandEntries
examples/app/api-reference/config/next-config-js/optimizePackageImports.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / optimizePackageImports**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/optimizePackageImports
examples/app/api-reference/config/next-config-js/output.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / output**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/output
examples/app/api-reference/config/next-config-js/pageExtensions.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / pageExtensions**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/pageExtensions
examples/app/api-reference/config/next-config-js/poweredByHeader.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / poweredByHeader**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/poweredByHeader
examples/app/api-reference/config/next-config-js/productionBrowserSourceMaps.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / productionBrowserSourceMaps**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/productionBrowserSourceMaps
examples/app/api-reference/config/next-config-js/proxyClientMaxBodySize.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / proxyClientMaxBodySize**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/proxyClientMaxBodySize
examples/app/api-reference/config/next-config-js/reactCompiler.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / reactCompiler**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/reactCompiler
examples/app/api-reference/config/next-config-js/reactMaxHeadersLength.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / reactMaxHeadersLength**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/reactMaxHeadersLength
examples/app/api-reference/config/next-config-js/reactStrictMode.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / reactStrictMode**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/reactStrictMode
examples/app/api-reference/config/next-config-js/redirects.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / redirects**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/redirects
examples/app/api-reference/config/next-config-js/rewrites.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / rewrites**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/rewrites
examples/app/api-reference/config/next-config-js/sassOptions.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / sassOptions**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/sassOptions
examples/app/api-reference/config/next-config-js/serverActions.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / serverActions**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/serverActions
examples/app/api-reference/config/next-config-js/serverComponentsHmrCache.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / serverComponentsHmrCache**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/serverComponentsHmrCache
examples/app/api-reference/config/next-config-js/serverExternalPackages.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / serverExternalPackages**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/serverExternalPackages
examples/app/api-reference/config/next-config-js/staleTimes.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / staleTimes**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/staleTimes
examples/app/api-reference/config/next-config-js/staticGeneration.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / staticGeneration**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/staticGeneration
examples/app/api-reference/config/next-config-js/taint.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / taint**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/taint
examples/app/api-reference/config/next-config-js/trailingSlash.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / trailingSlash**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/trailingSlash
examples/app/api-reference/config/next-config-js/transpilePackages.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / transpilePackages**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/transpilePackages
examples/app/api-reference/config/next-config-js/turbopack.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / turbopack**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack
examples/app/api-reference/config/next-config-js/turbopackFileSystemCache.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / turbopackFileSystemCache**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopackFileSystemCache
examples/app/api-reference/config/next-config-js/typedRoutes.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / typedRoutes**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/typedRoutes
examples/app/api-reference/config/next-config-js/typescript.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / typescript**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/typescript
examples/app/api-reference/config/next-config-js/urlImports.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / urlImports**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/urlImports
examples/app/api-reference/config/next-config-js/useLightningcss.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / useLightningcss**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/useLightningcss
examples/app/api-reference/config/next-config-js/viewTransition.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / viewTransition**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/viewTransition
examples/app/api-reference/config/next-config-js/webpack.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / webpack**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/webpack
examples/app/api-reference/config/next-config-js/webVitalsAttribution.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / next-config-js / webVitalsAttribution**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/next-config-js/webVitalsAttribution
examples/app/api-reference/config/typescript.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / config / typescript**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/config/typescript
examples/app/api-reference/directives/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / directives / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/directives
examples/app/api-reference/directives/use-cache-private.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / directives / use-cache-private**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/directives/use-cache-private
examples/app/api-reference/directives/use-cache-remote.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / directives / use-cache-remote**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/directives/use-cache-remote
examples/app/api-reference/directives/use-cache.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / directives / use-cache**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/directives/use-cache
examples/app/api-reference/directives/use-client.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / directives / use-client**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/directives/use-client
examples/app/api-reference/directives/use-server.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / directives / use-server**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/directives/use-server
examples/app/api-reference/edge.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / edge**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/edge
examples/app/api-reference/file-conventions/default.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / default**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/default
examples/app/api-reference/file-conventions/dynamic-routes.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / dynamic-routes**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/dynamic-routes
examples/app/api-reference/file-conventions/error.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / error**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/error
examples/app/api-reference/file-conventions/forbidden.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / forbidden**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/forbidden
examples/app/api-reference/file-conventions/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions
examples/app/api-reference/file-conventions/instrumentation-client.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / instrumentation-client**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/instrumentation-client
examples/app/api-reference/file-conventions/instrumentation.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / instrumentation**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/instrumentation
examples/app/api-reference/file-conventions/intercepting-routes.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / intercepting-routes**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/intercepting-routes
examples/app/api-reference/file-conventions/layout.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / layout**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/layout
examples/app/api-reference/file-conventions/loading.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / loading**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/loading
examples/app/api-reference/file-conventions/mdx-components.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / mdx-components**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/mdx-components
examples/app/api-reference/file-conventions/metadata/app-icons.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / metadata / app-icons**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/app-icons
examples/app/api-reference/file-conventions/metadata/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / metadata / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/metadata
examples/app/api-reference/file-conventions/metadata/manifest.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / metadata / manifest**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/manifest
examples/app/api-reference/file-conventions/metadata/opengraph-image.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / metadata / opengraph-image**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image
examples/app/api-reference/file-conventions/metadata/robots.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / metadata / robots**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/robots
examples/app/api-reference/file-conventions/metadata/sitemap.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / metadata / sitemap**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap
examples/app/api-reference/file-conventions/not-found.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / not-found**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/not-found
examples/app/api-reference/file-conventions/page.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / page**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/page
examples/app/api-reference/file-conventions/parallel-routes.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / parallel-routes**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/parallel-routes
examples/app/api-reference/file-conventions/proxy.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / proxy**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/proxy
examples/app/api-reference/file-conventions/public-folder.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / public-folder**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/public-folder
examples/app/api-reference/file-conventions/route-groups.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / route-groups**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/route-groups
examples/app/api-reference/file-conventions/route-segment-config.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / route-segment-config**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
examples/app/api-reference/file-conventions/route.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / route**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/route
examples/app/api-reference/file-conventions/src-folder.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / src-folder**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/src-folder
examples/app/api-reference/file-conventions/template.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / template**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/template
examples/app/api-reference/file-conventions/unauthorized.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / file-conventions / unauthorized**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/file-conventions/unauthorized
examples/app/api-reference/functions/after.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / after**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/after
examples/app/api-reference/functions/cacheLife.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / cacheLife**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/cacheLife
examples/app/api-reference/functions/cacheTag.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / cacheTag**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/cacheTag
examples/app/api-reference/functions/connection.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / connection**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/connection
examples/app/api-reference/functions/cookies.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / cookies**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/cookies
examples/app/api-reference/functions/draft-mode.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / draft-mode**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/draft-mode
examples/app/api-reference/functions/fetch.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / fetch**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/fetch
examples/app/api-reference/functions/forbidden.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / forbidden**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/forbidden
examples/app/api-reference/functions/generate-image-metadata.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / generate-image-metadata**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/generate-image-metadata
examples/app/api-reference/functions/generate-metadata.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / generate-metadata**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/generate-metadata
examples/app/api-reference/functions/generate-sitemaps.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / generate-sitemaps**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/generate-sitemaps
examples/app/api-reference/functions/generate-static-params.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / generate-static-params**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/generate-static-params
examples/app/api-reference/functions/generate-viewport.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / generate-viewport**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
examples/app/api-reference/functions/headers.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / headers**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/headers
examples/app/api-reference/functions/image-response.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / image-response**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/image-response
examples/app/api-reference/functions/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions
examples/app/api-reference/functions/next-request.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / next-request**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/next-request
examples/app/api-reference/functions/next-response.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / next-response**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/next-response
examples/app/api-reference/functions/not-found.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / not-found**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/not-found
examples/app/api-reference/functions/permanentRedirect.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / permanentRedirect**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/permanentRedirect
examples/app/api-reference/functions/redirect.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / redirect**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/redirect
examples/app/api-reference/functions/refresh.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / refresh**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/refresh
examples/app/api-reference/functions/revalidatePath.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / revalidatePath**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/revalidatePath
examples/app/api-reference/functions/revalidateTag.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / revalidateTag**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/revalidateTag
examples/app/api-reference/functions/unauthorized.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / unauthorized**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/unauthorized
examples/app/api-reference/functions/unstable_cache.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / unstable_cache**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/unstable_cache
examples/app/api-reference/functions/unstable_noStore.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / unstable_noStore**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/unstable_noStore
examples/app/api-reference/functions/unstable_rethrow.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / unstable_rethrow**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/unstable_rethrow
examples/app/api-reference/functions/updateTag.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / updateTag**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/updateTag
examples/app/api-reference/functions/use-link-status.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / use-link-status**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/use-link-status
examples/app/api-reference/functions/use-params.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / use-params**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/use-params
examples/app/api-reference/functions/use-pathname.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / use-pathname**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/use-pathname
examples/app/api-reference/functions/use-report-web-vitals.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / use-report-web-vitals**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/use-report-web-vitals
examples/app/api-reference/functions/use-router.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / use-router**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/use-router
examples/app/api-reference/functions/use-search-params.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / use-search-params**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/use-search-params
examples/app/api-reference/functions/use-selected-layout-segment.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / use-selected-layout-segment**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/use-selected-layout-segment
examples/app/api-reference/functions/use-selected-layout-segments.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / use-selected-layout-segments**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/use-selected-layout-segments
examples/app/api-reference/functions/userAgent.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / functions / userAgent**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/functions/userAgent
examples/app/api-reference/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference
examples/app/api-reference/turbopack.md
## Instructions
- Use this page as the authoritative reference for **app / api-reference / turbopack**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/api-reference/turbopack
examples/app/getting-started/cache-components.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / cache-components**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/cache-components
examples/app/getting-started/caching-and-revalidating.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / caching-and-revalidating**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/caching-and-revalidating
examples/app/getting-started/css.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / css**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/css
examples/app/getting-started/deploying.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / deploying**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/deploying
examples/app/getting-started/error-handling.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / error-handling**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/error-handling
examples/app/getting-started/fetching-data.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / fetching-data**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/fetching-data
examples/app/getting-started/fonts.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / fonts**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/fonts
examples/app/getting-started/images.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / images**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/images
examples/app/getting-started/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started
examples/app/getting-started/installation.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / installation**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/installation
examples/app/getting-started/layouts-and-pages.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / layouts-and-pages**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/layouts-and-pages
examples/app/getting-started/linking-and-navigating.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / linking-and-navigating**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/linking-and-navigating
examples/app/getting-started/metadata-and-og-images.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / metadata-and-og-images**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/metadata-and-og-images
examples/app/getting-started/project-structure.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / project-structure**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/project-structure
examples/app/getting-started/proxy.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / proxy**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/proxy
examples/app/getting-started/route-handlers.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / route-handlers**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/route-handlers
examples/app/getting-started/server-and-client-components.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / server-and-client-components**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/server-and-client-components
examples/app/getting-started/updating-data.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / updating-data**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/updating-data
examples/app/getting-started/upgrading.md
## Instructions
- Use this page as the authoritative reference for **app / getting-started / upgrading**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/getting-started/upgrading
examples/app/guides/analytics.md
## Instructions
- Use this page as the authoritative reference for **app / guides / analytics**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/analytics
examples/app/guides/authentication.md
## Instructions
- Use this page as the authoritative reference for **app / guides / authentication**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/authentication
examples/app/guides/backend-for-frontend.md
## Instructions
- Use this page as the authoritative reference for **app / guides / backend-for-frontend**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/backend-for-frontend
examples/app/guides/caching.md
## Instructions
- Use this page as the authoritative reference for **app / guides / caching**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/caching
examples/app/guides/ci-build-caching.md
## Instructions
- Use this page as the authoritative reference for **app / guides / ci-build-caching**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/ci-build-caching
examples/app/guides/content-security-policy.md
## Instructions
- Use this page as the authoritative reference for **app / guides / content-security-policy**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/content-security-policy
examples/app/guides/css-in-js.md
## Instructions
- Use this page as the authoritative reference for **app / guides / css-in-js**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/css-in-js
examples/app/guides/custom-server.md
## Instructions
- Use this page as the authoritative reference for **app / guides / custom-server**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/custom-server
examples/app/guides/data-security.md
## Instructions
- Use this page as the authoritative reference for **app / guides / data-security**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/data-security
examples/app/guides/debugging.md
## Instructions
- Use this page as the authoritative reference for **app / guides / debugging**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/debugging
examples/app/guides/draft-mode.md
## Instructions
- Use this page as the authoritative reference for **app / guides / draft-mode**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/draft-mode
examples/app/guides/environment-variables.md
## Instructions
- Use this page as the authoritative reference for **app / guides / environment-variables**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/environment-variables
examples/app/guides/forms.md
## Instructions
- Use this page as the authoritative reference for **app / guides / forms**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/forms
examples/app/guides/incremental-static-regeneration.md
## Instructions
- Use this page as the authoritative reference for **app / guides / incremental-static-regeneration**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/incremental-static-regeneration
examples/app/guides/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / guides / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides
examples/app/guides/instrumentation.md
## Instructions
- Use this page as the authoritative reference for **app / guides / instrumentation**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/instrumentation
examples/app/guides/internationalization.md
## Instructions
- Use this page as the authoritative reference for **app / guides / internationalization**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/internationalization
examples/app/guides/json-ld.md
## Instructions
- Use this page as the authoritative reference for **app / guides / json-ld**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/json-ld
examples/app/guides/lazy-loading.md
## Instructions
- Use this page as the authoritative reference for **app / guides / lazy-loading**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/lazy-loading
examples/app/guides/local-development.md
## Instructions
- Use this page as the authoritative reference for **app / guides / local-development**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/local-development
examples/app/guides/mcp.md
## Instructions
- Use this page as the authoritative reference for **app / guides / mcp**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/mcp
examples/app/guides/mdx.md
## Instructions
- Use this page as the authoritative reference for **app / guides / mdx**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/mdx
examples/app/guides/memory-usage.md
## Instructions
- Use this page as the authoritative reference for **app / guides / memory-usage**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/memory-usage
examples/app/guides/migrating/app-router-migration.md
## Instructions
- Use this page as the authoritative reference for **app / guides / migrating / app-router-migration**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/migrating/app-router-migration
examples/app/guides/migrating/from-create-react-app.md
## Instructions
- Use this page as the authoritative reference for **app / guides / migrating / from-create-react-app**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/migrating/from-create-react-app
examples/app/guides/migrating/from-vite.md
## Instructions
- Use this page as the authoritative reference for **app / guides / migrating / from-vite**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/migrating/from-vite
examples/app/guides/migrating/index/index.md
## Instructions
- Use this page as the authoritative reference for **app / guides / migrating / index / index**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/migrating
examples/app/guides/multi-tenant.md
## Instructions
- Use this page as the authoritative reference for **app / guides / multi-tenant**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/multi-tenant
examples/app/guides/multi-zones.md
## Instructions
- Use this page as the authoritative reference for **app / guides / multi-zones**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/multi-zones
examples/app/guides/open-telemetry.md
## Instructions
- Use this page as the authoritative reference for **app / guides / open-telemetry**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/open-telemetry
examples/app/guides/package-bundling.md
## Instructions
- Use this page as the authoritative reference for **app / guides / package-bundling**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/package-bundling
examples/app/guides/prefetching.md
## Instructions
- Use this page as the authoritative reference for **app / guides / prefetching**.
- Follow the official Next.js docs for supported APIs and patterns.
- Keep examples aligned with the section indicated by the path (App Router / Pages Router / Architecture / Community).
## Parameters
- Identify the key inputs or configuration options referenced by this page.
- Use the official docs to verify required vs optional fields.
- Prefer exact naming and casing from the documentation.
## Returns
- Describe expected behavior or output for the documented feature.
- If the page is conceptual, summarize the expected result or effect.
## Common Errors
- Mismatched configuration keys or invalid values.
- Using App Router APIs inside Pages Router (or vice versa).
- Skipping required runtime or environment setup.
## Best Practices
- Use official patterns and recommended defaults.
- Keep routing and data-fetching patterns consistent across the app.
- Validate changes against the official docs and examples.
## Scenarios
### Typical usage
- Identify the common use case for this page/topic.
- Apply the official steps and validate expected behavior.
### Troubleshooting
- Cross-check config and runtime requirements.
- Review the official page for edge cases and constraints.
Reference: https://nextjs.org/docs/app/guides/prefetching
LICENSE.txt
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SKILL.md
---
name: nextjs
description: Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
license: Complete terms in LICENSE.txt
---
## 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
## 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.
## Mapping Rules (one-to-one with https://nextjs.org/docs)
The `examples/` directory mirrors the official docs structure:
- `examples/index.md` → https://nextjs.org/docs
- `examples/app/...` → https://nextjs.org/docs/app/...
- `examples/pages/...` → https://nextjs.org/docs/pages/...
- `examples/architecture/...` → https://nextjs.org/docs/architecture/...
- `examples/community/...` → https://nextjs.org/docs/community/...
**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.
## Resources
- Docs: https://nextjs.org/docs
## Keywords
Next.js, App Router, Pages Router, routing, data fetching, caching, server components, client components, middleware, deployment, configuration
## 国内适配
- 支持中文文档和中文注释
- 示例代码兼容国内开发环境
- 提供中文 FAQ 和常见问题解答
## 能力边界
### ✅ 适用场景
- 当你需要使用此技能对应的技术栈时
- 当项目需要遵循最佳实践时
- 当需要快速上手或深入理解核心概念时
### ⚠️ 需要注意
- 复杂业务逻辑需要结合具体场景调整
- 性能优化需要根据实际数据量评估
### ❌ 不适用场景
- 不相关的技术栈或框架
- 需要完全自定义的特殊场景
## 使用流程
### Step 1: 环境准备
确保开发环境已安装必要的依赖和工具。
### Step 2: 配置初始化
根据项目需求进行基础配置。
### Step 3: 核心功能使用
按照示例代码实现核心功能。
### Step 4: 测试验证
运行测试确保功能正常。
### Step 5: 部署上线
完成开发后进行部署和监控。