When running nextjs with a custom server, what does .prepare() called on the next application do?
When running nextjs with a custom server, what does .prepare() called on the next application do?
it does 5 things in this order in an async/await fashion
next export exportPathMap work in development mode.
So that the user doesn't have to define a custom server reading the exportPathMapIt prepare or make the next.js code ready to use another server (In their example express) for handling SSR.