Newsletter comming soon
This commit is contained in:
@@ -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
|
||||
// ==========================================
|
||||
|
||||
Reference in New Issue
Block a user