Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Next.js 5.1: Faster Page Resolution

Vercel News·Tim Neutkens·3 days ago
#2TcTXNjC
Reading 0:00
15s threshold

We are happy to introduce Next.js 5.1, which features support for environment configuration, phases, source maps, and new Next.js plugins. Major performance improvements are introduced: resolving pages is 102x faster, and error pages are loaded more efficiently. To upgrade or install, run: npm i next@latest react@latest react-dom@latest In addition to bumping Next.js, we upgrade the peer dependencies `react` and `react-dom` Be sure to upgrade next-plugins like @zeit/next-css , @zeit/next-sass , @zeit/next-less or @zeit/next-typescript as well. Link to heading Faster page resolution Thanks to the architectural changes in Next.js 5.0, we were able to simplify the logic that resolves pages based on url path. These changes were based on research from @oliviertassinari . Previously resolving a page took an average of 2.347ms . With the new logic resolving the same page takes on average 0.023ms . That's a 102x speedup for one of the most commonly invoked methods in Next.js applications.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More