Newsletter comming soon

This commit is contained in:
Timo Knuth
2025-12-18 15:54:53 +01:00
parent f1d1f4291b
commit 6aa3267f26
14 changed files with 1128 additions and 2 deletions

View File

@@ -140,6 +140,18 @@ export const createCheckoutSchema = z.object({
priceId: z.string().min(1, 'Price ID is required'),
});
// ==========================================
// Newsletter Schemas
// ==========================================
export const newsletterSubscribeSchema = z.object({
email: z.string()
.email('Invalid email format')
.toLowerCase()
.trim()
.max(255, 'Email must be less than 255 characters'),
});
// ==========================================
// Helper: Format Zod Errors
// ==========================================