Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zoren
· 3y ago · 0 comments
Great article, thank you for sharing! The web-push package has a generateVAPIDKeys have you tried that? Was it not good since you use vapidkeys.com?
Comments
[–]
pqvst
3y ago
Thanks! I didn't realize web-push had a way to generate the keys until later. Also it was just easier to use the vapidkeys site.
[–]
zoren
OP
3y ago
vapidkeys.com signs you up for their newsletter I later found
[–]
zoren
OP
3y ago
> npx web-push generate-vapid-keys --json > vapid.json
Does the trick