refactor(push): load VAPID key from server at runtime
This commit is contained in:
@@ -43,3 +43,7 @@ export async function unsubscribeUser(endpoint: string) {
|
||||
|
||||
return { success: true };
|
||||
}
|
||||
|
||||
export async function getVapidPublicKey() {
|
||||
return process.env.NEXT_PUBLIC_VAPID_PUBLIC_KEY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user