refactor: update company registration flow and email handling; switch to zod for validation
This commit is contained in:
7
lib/validations/email.schema.ts
Normal file
7
lib/validations/email.schema.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const emailSchema = z.object({
|
||||
to: z.string().email(),
|
||||
subject: z.string().min(1).max(200),
|
||||
html: z.string().min(1).max(5000),
|
||||
});
|
||||
Reference in New Issue
Block a user