rsnext/examples/with-next-offline
Alejandro Garcia Anglada 8e4e07bfe2 Fixed next-offline example to serve service worker (#9531)
* Fixed next-offline example to serve service worker

* replaced custom server with rewrites
2019-11-26 21:03:09 -05:00
..
pages Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
public Typo in with-next-offline example manifest.json (#9472) 2019-11-20 10:39:30 -06:00
next.config.js Fixed next-offline example to serve service worker (#9531) 2019-11-26 21:03:09 -05:00
package.json Fixed next-offline example to serve service worker (#9531) 2019-11-26 21:03:09 -05:00
README.md Replace the deprecated Create Next App URL (#9032) 2019-10-10 23:34:14 -04:00

next-offline example

How to use

Using create-next-app

Execute create-next-app with Yarn or npx to bootstrap the example:

npx create-next-app --example with-next-offline with-next-offline-app
# or
yarn create next-app --example with-next-offline with-next-offline-app

Download manually

Download the example:

curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-next-offline
cd with-next-offline

Install it and run:

npm install
npm run dev
npm run export
serve -s out
# or
yarn
yarn dev
yarn export
serve -s out

Deploy it to the cloud with now (download)

now

The idea behind the example

This example demonstrates how to use the next-offline plugin It includes manifest.json to install app via chrome