Skip to content

Commit 1db4c52

Browse files
committed
Print warning when VAPID env variables aren't set
1 parent 32af382 commit 1db4c52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/testSelenium.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ if (!process.env.GCM_API_KEY) {
1515
}
1616

1717
if (!process.env.VAPID_PRIVATE_KEY || !process.env.VAPID_PUBLIC_KEY) {
18+
console.log('You haven\'t set the VAPID env variables, I\'ll generate them for you.'.bold.yellow);
19+
1820
var keys = webPush.generateVAPIDKeys();
1921
process.env.VAPID_PRIVATE_KEY = keys.privateKey.toString('base64');
2022
process.env.VAPID_PUBLIC_KEY = keys.publicKey.toString('base64');

0 commit comments

Comments
 (0)