This is the official Next.js example from the material-ui repo which you can find here.
Once you have
serverless configured and created your Domain with
serverless create_domain install with
$ yarn install $ npm run deploy
One limitation though is, that currently HTTP is not redirected to HTTPS.
$ npm run dev