This example demonstrates how to use next-pwa
.
cd examples/basic
pnpm build
pnpm start
or
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example /~https://github.com/DuCanhGH/next-pwa/tree/master/examples/basic basic-app
yarn create next-app --example /~https://github.com/DuCanhGH/next-pwa/tree/master/examples/basic basic-app
pnpm create next-app --example /~https://github.com/DuCanhGH/next-pwa/tree/master/examples/basic basic-app
**/public/workbox-*.js
**/public/sw.js