1.

What are the benefits of implementing Serverless mode and how to implement it?

Answer»

Implementing Serverless mode excellently improves SCALABILITY and readability of an application by SPLITTING it into smaller parts known as LAMBDAS. It also promotes affordability with a "PAY for what you use" model.

To enable Serverless mode in Next JS, we have to add ‘serverless’ BUILD target in next.config.js.

Example

// next.config.js

module.exports = {

target: 'serverless'

}



Discussion

No Comment Found