https://github.com/matthiaskern/next-offline-plugin
Example of next.js with a service worker generated by offline plugin
https://github.com/matthiaskern/next-offline-plugin
nextjs offline-plugin pwa react
Last synced: about 2 months ago
JSON representation
Example of next.js with a service worker generated by offline plugin
- Host: GitHub
- URL: https://github.com/matthiaskern/next-offline-plugin
- Owner: matthiaskern
- Created: 2017-06-27T18:14:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-27T18:14:54.000Z (almost 9 years ago)
- Last Synced: 2025-02-14T16:56:41.822Z (over 1 year ago)
- Topics: nextjs, offline-plugin, pwa, react
- Language: JavaScript
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Offline Plugin example
This is based on the work of [ssured](https://github.com/ssured) with https://github.com/ssured/nownextmicro
## How to use
Install it and run:
```bash
npm install
npm run build
npm start
```
Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))
```bash
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