Next.js 8 enables serverless deployment, in which applications are split into smaller parts, or lambdas, that let code be run on demand and scale automatically. In Next.js Version 8, each page in the
pages directory becomes a serverless lambda. A low-level API is available for serverless deployment.
Other new and improved features in Next.js Version 8 include:
next exportwill be faster on multi-CPU machines. Static rendering is done to output files that can be served directly without code execution on the server. The number of CPU cores will be detected automatically and pages distributed accordingly.
script-src unsafe-inlinein their policy, with Next.js creating an inline
<script>tag. The change means there are no more inline scripts included by Next.js.
You can find Next.js setup instructions at Nextjs.org.