Next.js Custom Server with Node.js
For Next.js 13 and below
2 min readJul 29, 2023
While Next.js is a full-stack framework itself, it can be integrated. The custom server feature lets developers plugin their app into an existing Node.js backend.
Here is how it works with Node.js and Express.
The approach works for the pages router and Next 13’s new app router. We’ll go over both options.