- 28 Oct, 2025 24 commits
-
-
nextjs-bot authored
-
Jiwon Choi authored
-
Jiwon Choi authored
-
Jiwon Choi authored
-
Swarnava Sengupta authored
Looks like `_next/data` is always matched to prevent accidental security issues with protecting the page but not the data route. Documenting using this PR
-
Benjamin Woodruff authored
This is a recreation of my _very first_ Turbopack PR in https://github.com/vercel/turborepo/pull/7206 (reverted in https://github.com/vercel/turborepo/pull/7573) Instead of using a trait upcast helper method, this uses the recently-stabilized trait upcasting compiler feature. I used claude to help write this, but cleaned it up by hand.
-
Sebastian "Sebbie" Silbermann authored
-
Cong-Cong Pan authored
TODO: Rspack currently does not support the hooks and chunk methods required by `ForceCompleteRuntimePlugin`. Temporarily disable `ForceCompleteRuntimePlugin` when using Rspack as the bundler. This plugin ensures complete webpack runtime is available during soft navigation to prevent runtime function errors, but Rspack currently does not support the required compilation hooks and chunk graph APIs. Co-authored-by:Will Binns-Smith <wbinnssmith@gmail.com>
-
Sebastian "Sebbie" Silbermann authored
-
Donny/강동윤 authored
### What? Combined with `codegen-units = 1` (I'll send another PR for this), these two patches reduce the binary size by 4MB (36MB -> 32MB) Before: https://github.com/swc-project/swc/pull/11188#issuecomment-3453793457 (`swc.linux-x64-gnu.node | 36M (37113184 bytes)`) After: https://github.com/swc-project/swc/pull/11190#issuecomment-3453932183 (`swc.linux-x64-gnu.node | 32M (32959328 bytes)`) ### Why? To reduce the binary size ### How?
-
nextjs-bot authored
-
nextjs-bot authored
-
nextjs-bot authored
-
Sebastian "Sebbie" Silbermann authored
-
Niklas Mischkulnig authored
The `.contains("/node_modules/")` condition didn't work for npm, where the path might be `"node_modules/.prisma/client"` This fixes cases of the following error with Prisma and npm ``` Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x". We detected that you are using Next.js, learn how to fix this: https://pris.ly/d/engine-not-found-nextjs. This is likely caused by tooling that has not copied "libquery_engine-rhel-openssl-3.0.x.so.node" to the deployment folder. Ensure that you ran `prisma generate` and that "libquery_engine-rhel-openssl-3.0.x.so.node" has been copied to "node_modules/.prisma/client". We would appreciate if you could take the time to share some information with us. Please help us by answering a few questions: https://pris.ly/engine-not-found-tooling-investigation The following locations have been searched: /var/task/node_modules/.prisma/client /var/task/node_modules/@prisma/client /vercel/path0/node_modules/@prisma/client /tmp/prisma-engines ``` -
Sebastian "Sebbie" Silbermann authored
-
Jiwon Choi authored
Proxy is not being picked up during prod on Windows. It is because of two reasons: 1. `isAtConventionLevel` condition was false as the dir was `\\` in Windows, but was checking with explicit `/`. 2. `page` value passed to `getStaticInfoIncludingLayouts` function was in `\\proxy` but was expected to be `/proxy`, which is later used for `isProxy` condition. Therefore, the given paths needed to be normalized. Current behavior: https://github.com/vercel/next.js/actions/runs/18872127141/job/53853048061?pr=85443#step:34:160 Closes NEXT-4756
-
Sebastian "Sebbie" Silbermann authored
[test] Exclude likely Next.js internal Components from component stacks in Redbox assertions (#85420)
-
Alessandro Grosselle authored
### What? - Upgrade development dependency **Express** to the latest version (5.1.0). - Replace direct assignment of `apiReq.query` with `Object.defineProperty` to ensure the property is writable, enumerable, and configurable. ### Why? - To use the most up-to-date and supported version of Express instead of a legacy one. - To fix [expressjs/express#6633](https://github.com/expressjs/express/issues/6633), where Express 5.x defines `req.query` as a read-only getter, preventing Next.js from overriding it directly. ### How? - Update the Express version in `package.json` and run `pnpm install` to apply the change. - Replace: ```js apiReq.query = query; ``` With ```js Object.defineProperty(apiReq, 'query', { value: { ...query }, writable: true, enumerable: true, configurable: true, }); ``` --------- Co-authored-by:
Alessandro Grosselle <alessandro.grosselle@adevinta.com> Co-authored-by:
graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> Co-authored-by:
Sebastian Beltran <bjohansebas@gmail.com> Co-authored-by:
Tim Neutkens <tim@timneutkens.nl>
-
Sebastian "Sebbie" Silbermann authored
[test] Exclude Next.js internal stack frames from cache-component-error CLI output assertions (#85421)
-
Andrew Clark authored
This is a stack of refactors related to the internal map type used to store Segment Cache entries on the client. Refer to each commit message for full details. The main motivation is to generalize the "fallback entry" mechanism used for interception routes to more kinds of params. Currently this is only used for interception routes and search params, but in the future we will use it for route params, too.
-
Sebastian "Sebbie" Silbermann authored
-
Zack Tanner authored
There are a lot of things in here that aren't quite fully fleshed out yet (eg runtime prefetching) as well as some inaccuracies (eg `use cache: private` is not required for runtime prefetching, it's just another thing that _can_ be runtime prefetched). This trims the doc down until we can focus on proper guidance.
-
Steven authored
Swapping `is-local-address` for `ipaddr.js`
-
- 27 Oct, 2025 16 commits
-
-
nextjs-bot authored
-
Sebastian "Sebbie" Silbermann authored
-
Will Binns-Smith authored
- **Remove now-unnecessary feature flag for new_zeroed_alloc** - **Remove unused import** - **Update toolchain to 2025-10-27**
-
nextjs-bot authored
-
nextjs-bot authored
-
Sebastian "Sebbie" Silbermann authored
-
Zack Tanner authored
`prefetch={true}` with `cacheComponents` was opting into runtime prefetching, with `unstable_forceStale` preserving the old behavior of fetching the full (stale) data. However we only intended to expose runtime prefetching via the `export const prefetch` segment config. This removes `unstable_forceStale` and restores previous `prefetch={true}` behavior. I've disabled some of the tests that were relying on the old link behavior for opting into runtime prefetching - we'll need to refactor those to use the segment opt-in or just remove them all together. Fixes #85162 Closes NAR-320 -
Josh Story authored
These scopes aren't fully Next.js environments and can't access many Next.js APIs. In the future this might change but for now we will exclude the `next-js` condition when bundling for these entrypoints so that 3rd parties that target Next.js can do so with the expectation that regardless of what environment they are running in the full suite of Next.js libraries they support will work.
-
Sebastian "Sebbie" Silbermann authored
-
Mike Dyer authored
<!-- 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 - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - 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? ### Why? ### How? Closes NEXT- Fixes # --> Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Cody Coljee-Gray authored
Small grammar fix for fast-refresh.mdx <!-- 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 - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - 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? Small grammer update on page introduction. ### Why? This makes the sentence more readable. ### How? N/A Closes NEXT- Fixes # --> Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
jesuistuan authored
The second “used” seems unnecessary. <!-- 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 - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - 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? ### Why? ### How? Closes NEXT- Fixes # --> Co-authored-by:
Joseph <joseph.chamochumbi@vercel.com>
-
Sebastian "Sebbie" Silbermann authored
-
Sebastian "Sebbie" Silbermann authored
-
Joseph authored
Answers, how come I can return JSX from cache components?
-
Joseph authored
Also closes: https://github.com/vercel/next.js/issues/85344
-