This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
import webpush from "web-push";
|
import webpush from "web-push";
|
||||||
import PouchDB from "./PouchDB.js";
|
import PouchDB from "./PouchDB.js";
|
||||||
|
|
||||||
|
if (!process.env.VAPID_SUBJECT) {
|
||||||
|
throw new Error('VAPID_SUBJECT env is empty!');
|
||||||
|
}
|
||||||
|
|
||||||
const vapidKeys = webpush.generateVAPIDKeys();
|
const vapidKeys = webpush.generateVAPIDKeys();
|
||||||
|
|
||||||
await new PouchDB(`${process.env.API_URL}/server_settings`, {
|
await new PouchDB(`${process.env.API_URL}/server_settings`, {
|
||||||
|
|||||||
Reference in New Issue
Block a user