now-next-pwa
now builder for Next.js PWA. WARNING, This project is in experimental stage. APIs and others would be changed
Getting Started
Set up project and Install builder
now init nextjscd nextjs
Add code for service worker registration to pages/index.js
; { ... ; return ... ;}
static
Add manifest to components/head.js and icon resources under const Head = <NextHead> <meta charSet="UTF-8" /> ... <link rel="icon" href="/static/favicon.ico" /> <link rel="manifest" href="/manifest.json" /> ... </NextHead>;
now.json
with workbox and manifest custom setting as you need
Configure
Deploy to now
now
or you can test in development mode of now
now dev
License
MIT @ Jimmy Moon