This nextjs starter app includes the latest powerful tools.
First a require, then a method that return a server instance and finally the function to get access to nextjs internals.
Since NextJs is another node web server, create it is almost the same than hapijs.