Next js 12.3 4
How to upgrade to version 12
To upgrade to version 12, sprint the following command:
Good to know: If you are using TypeScript, ensure you also upgrade and to their corresponding versions.
Upgrading to 12.2
Middleware - If you were using Middleware prior to , please see the upgrade manual for more information.
Upgrading to 12.0
Minimum Node.js Version - The minimum Node.js version has been bumped from to which is the first version of Node.js with native ES Modules support.
Minimum React Version - The minimum required React version is . To upgrade you can run the following command in the terminal:
SWC replacing Babel
Next.js now uses the Rust-based compiler SWCThis new compiler is up to 17x faster than Babel when compiling individual files and up to 5x faster Fast Refresh.
Next.js provides occupied backward compatibility with applications that have custom Babel configuration. All transformations that Next.js handles by default like styled-jsx and tree-shaking of / / have been ported to Rust.
When an application has a custom Babel configuration, Next.js 11.
Many of the integrations with external libraries that currently require custom Babel transformations will be ported t
Next.js is an open-source React framework developed by Vercel. It offers server-side rendering, static site generation, and client-side rendering capabilities, enabling developers to build performant and scalable web applications. The framework is designed to be developer-friendly, with a focus on fast refresh and an optimized production build.
| Release | Released | Security Support | Latest |
|---|---|---|---|
| 15 | 10 months ago (21 Oct 2024) | Yes | 15.5.2 (26 Aug 2025) |
| 14 | 1 year and 10 months ago (26 Oct 2023) | Yes | 14.2.32 (18 Aug 2025) |
| 13 | 2 years and 10 months ago (25 Oct 2022) | Ended 8 months ago (21 Dec 2024) | 13.5.11 (27 Mar 2025) |
| 12 | 3 years and 10 months ago (26 Oct 2021) | Ended 2 years and 9 months ago (21 Nov 2022) | 12.3.7 (28 Mar 2025) |
| 11 | 4 years ago (15 Jun 2021) | Ended 3 years and 7 months ago (27 Jan 2022) | 11.1.4 (27 Jan 2022) |
| 10 | 4 years and 10 months ago (27 Oct 2020) | Ended 4 years ago (15 Jun 2021) | 10.2.3 (24 May 2021) |
| 9 | 6 years ago (08 Jul 2019) | Ended 4 years and 10 months ago (27 Oct 2020) | 9.5.5 (10 Oct 2020) |
Next.js follows semantic versioning. Major versions seem to be released on aver
How get client url in nextjs 12.3.4?
luojiyin19871
I use nextjs 12.3.4 , I use GetServerSideProps function , get info from server .
how I can get the url of client?
lasjorg2
how I can get the url of client?
Not really sure what you mean by that.
You can get route info from the router object
nextjs.orgFunctions: useRouter | Next.js
Learn more about the API of the Next.js Router, and access the router instance in your page with the useRouter hook.
luojiyin19873
I use function, it is server side rendering. I can not use
luojiyin19874
I get url for req.header
system Closed 5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
Next.js 12.3
We've shipped some quality-of-life improvements to Next.js with 12.3:
Update today by running .
Announcing the third global Next.js community conference on October 25th. Register now →
Next.js Conf
You’re invited to the global Next.js community conference on October 25th. For the 6th anniversary of Next.js, we’ll be introducing:
- Features that leverage React Server Components, Streaming and Suspense.
- Conventions that make it easier for developers to optimize and scale applications.
- Open-source tooling that make local development and production builds faster.
Claim your free ticket and see the future of Next.js and React, and follow @nextjs for more announcements soon. We’re also looking for community talks. Submit a talk proposal and share the story of what you’re building with Next.js.
TypeScript Auto-Install
Next.js has built-in support for automatically configuring TypeScript. Previously, adding TypeScript to an existing project required manually installing the necessary dependencies.
With this release, Next.js automatically detects when TypeScript files are added to a project, installs the necessary dependencies, and adds a file. This works w
Next.js, a React framework, is vulnerable to a critical severity flaw, tracked as CVE-2025-29927. Successful exploitation of the vulnerability may allow a remote, unauthenticated attacker to bypass authorization checks within a Next.js application.
Next.js is a React framework that provides a structured environment for building web applications handling tasks like routing, data fetching, and optimization, which developers typically handle in standard React applications.
A quick search revealed more than 5,000,000 publicly available targets on Fofa at the time of writing.
Vulnerability details
The vulnerability exists in an internal header x-middleware-subrequest used by Netx.js to prevent recursive requests from triggering infinite loops.
Qualys Threat Research Unit reproduced the vulnerability in our labs.
Image Source: Qualys Threat Research Unit
Image Source: Qualys Threat Research Unit
Affected Versions
- Next.js versions 11.1.5 to 12.3.4
- Next.js versions 13.0.0 to 13.5.8
- Next.js versions 14.0.1 to 14.2.24
- Next.js versions 15.0.1 to 15.2.2
Mitigation
Users must upgrade to the following versions to patch the vulnerability:
- Next.js version 12.3