Cloud Messaging API Key
- Click on the gear icon next to Project Overview.
- Click Project settings.
- Click Cloud Messaging.
- Scroll down to Web Push certificates.
- Click Generate Key Pair.
Copy the VAPID and paste it into the .env.local
project files.
The file should look like this:
NEXT_PUBLIC_VAPID_KEY=the-server-key