Skip to content

Step 5 - Introducing api routes in Next.js

Course: NextJS (Server side) - chapter 5

NextJS lets you write backend routes, just like express does.

This is why Next is considered to be a full stack framework.

The benefits of using NextJS for backend includes -

  1. Code in a single repo
  2. All standard things you get in a backend framework like express
  3. Server components can directly talk to the backend