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 -
- Code in a single repo
- All standard things you get in a backend framework like express
- Server components can directly talk to the backend