mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(config): 🐛 Trigger vapid key autogeneration even when block is not commented out
This commit is contained in:
parent
b67d86dc57
commit
88944712fe
|
|
@ -212,7 +212,7 @@ export const vapidKeyPair = z
|
|||
})
|
||||
.optional()
|
||||
.transform((k, ctx) => {
|
||||
if (!k) {
|
||||
if (!(k?.public && k?.private)) {
|
||||
const keys = generateVAPIDKeys();
|
||||
|
||||
ctx.addIssue({
|
||||
|
|
|
|||
Loading…
Reference in a new issue