This is an example Next.js project with a working implementation of WebPush in a PWA for iOS and Android. It uses Next.js, TypeScript, web-push and deploys to Azure Static Web Apps. For more information see my tutorial!
Start development server:
yarn install
yarn dev
Build and run Docker container:
docker build -t nextjs-docker .
docker run -p 3000:3000 nextjs-docker
This example app is currently deployed on Azure Static Web Apps: https://icy-island-0a0b23d03.3.azurestaticapps.net/.
Instances are shut down when not used for some time. It could take a few seconds to start the app when clicking the link.
Feel free to open an issue on this repository when you have a question or feedback. Much appreciated!