This is based on the work of ssured with https://github.com/ssured/nownextmicro
Install it and run:
npm install
npm run build
npm startDeploy it to the cloud with now (download)
nowThis example uses offline-plugin to generate a service worker. The worker gets registered on the client-side with the help of react-no-ssr. A custom server is needed to deal with the hashing implemented in next.js