Serverless Apps Are Now Supported by Next.js 8

October 30, 20181 min to read
Serverless Apps Are Now Supported by Next.js 8

Next.js is a JavaScript and React framework which is used for building server-rendered apps. Using JavaScript and the React UI libraries, Next.js has now added serverless capabilities in the version 8 release.

Next.js 8 has introduced serverless deployment for apps. The apps are reduced into smaller parts known as lambdas. The code is then run on demand and scaled automatically. In this new version every page is now a serverless lambda. For serverless deployment, a low-level API is now available. Key features to look out for include:

  • Memory usage is reduced — it is now 16 times better with no loss of performance.
  • Next.js router now pre-fetches pages leading to more rapid navigation.
  • Payload size is less because HTML size is reduced.
  • Static exports are rapid particularly on multi-CPU devices. Static rendering outputs files that don’t need to have code executed on the server. It detects CPUs automatically and adjusts page distribution accordingly.
  • JSON tag has replaced the inline JavaScript tag allowing for rapid, safe transfer to client.
  • Unlike previous versions, Next.js * has taken out the requirement to use script-src unsafe-in-line tag in order to enable to the security layer. Now the developer only needs to use the inline script Tag, thus Next.js 8 removes online scripts completely.
  • Next.js 8 provides an example showing how to authenticate against an external API in any programming language.

If you’re looking for a RoR Development Company that also provides other software development services contact us.

Share:
Be the first to receive our articles
Thank You For Subscribing!
Something Went Wrong. Please try again.

Relevant Articles

We use cookies to ensure that we give you the best experience on our website.
We also use cookies to ensure we show relevant content.