After years and years fighting with and against JavaScript build stacks, I eventually gave a try to Next.js and fell in love with it for two simple reasons: it’s barely opinionated, and it packages a simple and unique build configuration shared across back-end and front-end.
But as it’s not Express underneath the API routes, we have to find some workarounds to be able to build a real all-in-one application.
Source: https://noclat.medium.com/build-a-full-api-with-next-js-97b611bef531