This example uses next-pwa to create a progressive web app (PWA) powered by Workbox.
Deploy the example using Vercel or preview live with StackBlitz
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example progressive-web-app progressive-web-appyarn create next-app --example progressive-web-app progressive-web-apppnpm create next-app --example progressive-web-app progressive-web-appDeploy it to the cloud with Vercel (Documentation).