Serverless Apps Are Now Supported by Next.js 8
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.
- 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.