check VAPID_SUBJECT in generate-keys
Main daploy / deploy (push) Successful in 39s

This commit is contained in:
2024-11-24 23:55:22 +02:00
parent f1eb121b5e
commit bdf2399757
@@ -1,6 +1,10 @@
import webpush from "web-push";
import PouchDB from "./PouchDB.js";
if (!process.env.VAPID_SUBJECT) {
throw new Error('VAPID_SUBJECT env is empty!');
}
const vapidKeys = webpush.generateVAPIDKeys();
await new PouchDB(`${process.env.API_URL}/server_settings`, {