Package Exports
- @ducanh2912/next-pwa
- @ducanh2912/next-pwa/workbox
Readme
Zero-config PWA plugin for Next.js
This plugin is powered by Workbox and other good stuff.
Features
- 0οΈβ£ No configuration needed, but is configurable using
Workbox's options and our own options. - β¨ Optimized precaching and runtime caching.
- π― Maximal Lighthouse score.
- π Easy-to-understand examples.
- π΄ Offline support (you can also provide fallbacks for when fetching fails).
- π Default range requests for audios and videos.
- π Custom worker to run your own code (also supports path aliases, Typescript and code splitting!).
- π Public environment variables are available in custom workers.
- π Debug service worker in development mode.
- π Internationalization support with
next-i18next. - β‘ Supports blitz.js (simply add
blitz.config.js) and GitPod.
Getting Started
Visit https://ducanh-next-pwa.vercel.app/docs/next-pwa/getting-started to get started with next-pwa.
Documentation
Visit https://ducanh-next-pwa.vercel.app/docs/next-pwa to see the documentation.
Community
You can ask questions, suggest features, and share your projects on Github Discussions.
Please follow our Code of Conduct when you communicate with other people.
Contributing
Please see our contributing guide.