The JavaScript and React framework, Next.js 8 comes with support for serverless deployment, whereby applications are separated into smaller lambdas or parts, to allow code to run on demand and scale automatically, with each page in the directory serving as a serverless lambda.
While Next.js is for building server-rendered apps with the React UI library and JavaScript, now the version 8 has brought with it serverless capabilities, and low-level API for serverless deployment.
And the framework also help to reduce build-time memory usage and speeds up static export, with other improvements in Next.js Version 8 including: better static export, with faster static rendering through next export on multi-CPU machines. It is performed on output files which can be served directly without code execution on server.
It offers build-time memory usage reduction, through contributions to the Webpack module bundler and this resulted in 16 times better memory usage without degradation in performance.
And there are also improvements in prefetch performance, with Next.js router enabling the prefetching of pages for easier navigation, while a sample API authentication is included to show how to authenticate against external API in programming language.
Finally, the inline JavaScript tag has been changed to JSON for safe transfer to client. Though with previous Next.js versions, the enabling of the Content Security Policy security layer required enabling script-src unsafe-inline in their policy, the change means that no inline scripts are included by Next.js, as it creates an inline script tag.
No comments