/next-offline-plugin

Example of next.js with a service worker generated by offline plugin

Primary LanguageJavaScript

Offline Plugin example

This is based on the work of ssured with https://github.com/ssured/nownextmicro

How to use

Install it and run:

npm install
npm run build
npm start

Deploy it to the cloud with now (download)

now

The idea behind the example

This 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