refactor(push): load VAPID key from server at runtime

This commit is contained in:
2026-01-13 12:14:17 +01:00
parent 3a50bb5299
commit 3a16705614
4 changed files with 36 additions and 20 deletions

View File

@@ -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;
}