DEV Community

Cover image for Next.js include incremental static pages regeneration
SUNANDA SAMANTA for Centocode

Posted on • Originally published at centocode.com

Next.js include incremental static pages regeneration

Next.js is a React JavaScript UI library getting a refresh. It’s new 9.5 update adds capabilities including incremental static regeneration.

Incremental static regeneration updates through re-rendering them from the background as traffic flow. Traffic is served statically beside the newly built page used only after it is done generating. So there are no spikes in latency and pages never going offline.

Incremental adoption of Next.js allowing developers to make incoming requests with different destination paths including other URLs. It is used in situations such as changing the structure of application routes, take the form of a list of redirects in next.config.js under the redirects key.

It developed by edge network provider Vercel and it is open-source. Next.js is used as an enterprise-level tool for building static websites, pre-rendered apps, and mobile web apps.

Some other new improvements and updates in Next.js 9.5: —

  • A trailingSlsh option offered as part of next.config.js. After this option set to true, Next.js will automatically add a trailing slash to URLs.
  • A bashPath config option enables easy hosting of a Next.js application on a subpath of a domain.
  • A previously introduced profiler API enabled tracking of performance issues in the React component instead of a separate version of ReactDOM to be used to profile in production. Through Next.j’s new version, developers can set up automatically correct aliases of react-dom and schedulermodules.
  • JavaScript bundles use content hashes instead of the build ID. It allows for pages that new deploys changes happen, the bowers cache stored without having downloaded again.
  • Fast Refresh has been refined to show more helpful application error messages.
  • All dynamic routes provide more flexibility and choice in application routing needs. Actually is on the experimental stage.
  • Webpack 5 beta module bundler release which has improvements such as better tree-shaking and persistent caching.

You can read more on: HERE

Thank you for giving this article some time to read. Thank you so much.

Top comments (0)