Next.js Updates Runtime
Written by Kay Ewbank   
Monday, 29 August 2022

Next.js has been updated with a new, better, runtime along with a new package that extends what’s possible with Next.js Middleware. Next.js is an open-source toolkit for universal, server-rendered (or statically pre-rendered) React.js applications.

Next.js is described as an intuitive page-based routing system with support for dynamic routes. It automatically statically optimizes pages when possible, and carries out server-side rendering of  pages with blocking data requirements.

nextjs

The first change to the new release is the new runtime environment. The team says this lets you run Next.js on a more modern edge network that gives you more power and flexibility than what’s available with other platforms. It has also been designed to let you run Next.js and all of its core features with zero configuration.

The Next.js runtime configures your site on Netlify, automatically generating serverless functions that handle server-side rendered (SSR) pages, incremental static regeneration (ISR), images, and Next.js features. The runtime also supports Next.js rewrites and redirects. These are defined in your next.config.js file and support some features that are not included in Netlify redirects and rewrites.

The next improvement is to the middleware options. Next.js Advanced Middleware supports HTML rewrites, page data transforms, and through full access to the response body can be used to modify content on the fly, at the edge, without unnecessary client-side JavaScript or complicated SSR strategies.

Suggested uses by the developers include showing different content to site visitors based on their geolocation; or authenticating users to an app without revealing private keys in the request.

The Advanced Middleware is only available on Netlify’s Next.js Runtime, but this also adds access to over thirty additional features including a GraphQL-powered API mesh for easily connecting new services, granular release management features for locking and prioritizing builds, and advanced serverless capabilities like background functions and scheduled functions.

nextjs

More Information

Next.JS Site

Next.JS On GitHub

Related Articles

Next.js 5 Improves Webpack Support

 

More Information

Related Articles

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Firefox 1.0 Released 20 Years Ago
10/11/2024

A news item with the headline "Firefox browser takes on Microsoft" from 20 years ago has attracted renewed attention. It was originally published on the BBC News website on November 9th, 2004 rec [ ... ]



Lightbend Announces Akka 3
15/11/2024

Lightbend, the company that developed Akka, has announced Akka 3, and has changed its name to Akka. The company produces cloud-native microservices frameworks, and Akka is used for building distribute [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 29 August 2022 )