feat(donate): add key auth to tts
Build and Push Image / docker (push) Failing after 2m1s

This commit is contained in:
2026-06-08 12:10:20 +07:00 Unverified
parent 3efe2a852e
commit 85ed7e54ea
5 changed files with 11 additions and 4 deletions
+2
View File
@@ -5,9 +5,11 @@ import z from "zod";
import { env } from "process";
import { redis } from "@/lib/db/redis";
import { hash } from "bun";
const { DONATE_WIDGET_KEY } = process.env as Record<string, string>;
const Schema = z.object({
message: z.string().max(1000),
key: z.literal(DONATE_WIDGET_KEY),
});
const voices = ["Zephyr", "Charon", "Fenrir", "Kore", "Sulafat"];