add captcha client key to meta

This commit is contained in:
mrjvs
2023-10-29 15:32:25 +01:00
parent cdb939bca9
commit e9f8845506
2 changed files with 3 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ export const configSchema = z.object({
// captcha secret
secret: z.string().min(1).optional(),
clientKey: z.string().min(1).optional(),
})
.default({}),
});

View File

@@ -23,6 +23,7 @@ export const metaRouter = makeRouter((app) => {
name: conf.meta.name,
description: conf.meta.description,
hasCaptcha: conf.captcha.enabled,
captchaClientKey: conf.captcha.clientKey,
};
}),
);