1. 24 Jan, 2026 4 commits
    • nextjs-bot's avatar
      v16.2.0-canary.7 · f51e3acf
      nextjs-bot authored
      f51e3acf
    • Hanzala Sohrab's avatar
      docs: Update Partytown URLs and package reference (#88928) · d8a0f6ca
      Hanzala Sohrab authored
      - Update Partytown documentation links from `builder.io` to `qwik.dev`.
      - Update Partytown installation package reference in the guide.
      
      <!-- Thanks for opening a PR! Your contribution is much appreciated.
      To make sure your PR is handled as smoothly as possible we request that
      you follow the checklist sections below.
      Choose the right checklist for the change(s) that you're making: -->
      
      ## For Contributors
      
      ### Improving Documentation
      
      - [x] Run `pnpm prettier-fix` to fix formatting issues before opening
      the PR.
      - [x] Read the Docs Contribution Guide to ensure your contribution
      follows the docs guidelines:
      https://nextjs.org/docs/community/contribution-guide
      
      ### Fixing a bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Tests added. See:
      https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
      - [ ] Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      ### Adding a feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the
      feature request has been accepted for implementation before opening a
      PR. (A discussion must be opened, see
      https://github.com/vercel/next.js/discussions/new?category=ideas)
      - [ ] Related issues/discussions are linked using `fixes #number`
      - [ ] e2e tests added
      (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      
      ## For Maintainers
      
      - [ ] Minimal description (aim for explaining to someone not on the team
      to understand the PR)
      - [ ] When linking to a Slack thread, you might want to share details of
      the conclusion
      - [ ] Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
      - [ ] Add review comments if necessary to explain to the reviewer the
      logic behind a change
      
      ### What?
      Updated Partytown documentation URLs and the installation package
      reference in the `next/script` guide.
      
      ### Why?
      Partytown documentation and packages have moved from `builder.io` to
      `qwik.dev`. The old links were outdated, and the package reference
      needed to be updated to `@qwik.dev/partytown` to ensure users install
      the correct version.
      
      ### How?
      Updated
      [docs/01-app/02-guides/scripts.mdx](cci:7://file:///home/hanzala/Projects/personal/next.js/docs/01-app/02-guides/scripts.mdx:0:0-0:0)
      to replace `partytown.builder.io` with `partytown.qwik.dev` and updated
      the `npm install` instruction.
      
      Closes NEXT-
      Fixes #
      d8a0f6ca
    • Vercel Release Bot's avatar
      Update font data (#88975) · 89cddc26
      Vercel Release Bot authored
      This auto-generated PR updates font data with latest available
      Co-authored-by: 's avatarnextjs-bot <it+nextjs-bot@vercel.com>
      89cddc26
    • Jude Gao's avatar
      feat(next-codemod): add agents-md command for AI coding agents (#88961) · 1e859c06
      Jude Gao authored
      ## Summary
      
      Adds a new `agents-md` subcommand to `@next/codemod` that generates a
      Next.js documentation index for AI coding agents (Claude, Cursor, GitHub
      Copilot, etc.).
      
      ## Usage
      
      ```bash
      # Interactive mode - prompts for version and target file
      npx @next/codemod agents-md
      
      # Non-interactive mode
      npx @next/codemod agents-md --version 15.1.0 --output CLAUDE.md
      
      # Auto-detect version, specify output
      npx @next/codemod agents-md --output AGENTS.md
      ```
      
      ## What it does
      
      1. Downloads the Next.js documentation matching your project's version
      to `.next-docs/` (via git sparse-checkout)
      2. Generates a compact index of all doc files grouped by directory
      3. Injects the index into `CLAUDE.md` or `AGENTS.md` between marker
      comments
      4. Adds `.next-docs/` to `.gitignore`
      
      The index helps AI agents prefer local documentation over pre-trained
      knowledge, ensuring answers match your Next.js version.
      
      ## Options
      
      | Option | Description |
      |--------|-------------|
      | `--version <version>` | Specify Next.js version (auto-detected from
      `package.json` if not provided) |
      | `--output <file>` | Target file path (e.g., `CLAUDE.md`, `AGENTS.md`)
      |
      
      ## Output format
      
      The generated index is a single line with pipe separators:
      
      ```
      <!-- NEXT-AGENTS-MD-START -->[Next.js Docs Index]|root: ./.next-docs|IMPORTANT: Prefer retrieval-led reasoning...|dir:{file1.mdx,file2.mdx}|...<!-- NEXT-AGENTS-MD-END -->
      ```
      
      ## Test plan
      
      - [x] Build passes
      - [x] Tested interactive mode
      - [x] Tested non-interactive mode with `--version` and `--output`
      - [x] Tested auto-detect version with `--output` only
      - [x] Verified `.gitignore` is updated
      - [x] Verified index is injected correctly (new file and existing file)
      
      ## Eval results
      
      Tested against 19 Next.js-specific agent evals with 100% pass rate:
      
      | Eval | Result |
      |------|--------|
      | agent-000-app-router-migration-simple | ✅✅✅ (89.5s) |
      | agent-021-avoid-fetch-in-effect | ✅✅✅ (90.4s) |
      | agent-022-prefer-server-actions | ✅✅✅ (67.1s) |
      | agent-023-avoid-getserversideprops | ✅✅✅ (102.5s) |
      | agent-024-avoid-redundant-usestate | ✅✅✅ (62.9s) |
      | agent-025-prefer-next-link | ✅✅✅ (69.5s) |
      | agent-026-no-serial-await | ✅✅✅ (96.2s) |
      | agent-027-prefer-next-image | ✅✅✅ (68.0s) |
      | agent-028-prefer-next-font | ✅✅✅ (64.2s) |
      | agent-029-use-cache-directive | ✅✅✅ (76.6s) |
      | agent-030-app-router-migration-hard | ✅✅✅ (220.8s) |
      | agent-031-proxy-middleware | ✅✅✅ (92.4s) |
      | agent-032-use-cache-directive | ✅✅✅ (71.3s) |
      | agent-033-forbidden-auth | ✅✅✅ (100.6s) |
      | agent-034-async-cookies | ✅✅✅ (68.7s) |
      | agent-035-connection-dynamic | ✅✅✅ (65.2s) |
      | agent-036-after-response | ✅✅✅ (68.7s) |
      | agent-037-updatetag-cache | ✅✅✅ (70.3s) |
      | agent-038-refresh-settings | ✅✅✅ (71.8s) |
      | **Overall** | **19/19/19 (100%, 100%, 100%)** |
      
      Legend: ✅✅✅ = Build/Lint/Test
      1e859c06
  2. 23 Jan, 2026 20 commits
  3. 22 Jan, 2026 16 commits