feat: full site build — Project/Melody schema (Option A), admin CRUD, public sections, uploads, email+SMTP, internal analytics, legal pages, docs
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const contactSchema = z.object({
|
||||
name: z.string().trim().min(2).max(100),
|
||||
email: z.string().trim().email().max(254),
|
||||
message: z.string().trim().min(10).max(5000),
|
||||
website: z.string().max(0).optional(),
|
||||
});
|
||||
|
||||
export type ContactInput = z.infer<typeof contactSchema>;
|
||||
Reference in New Issue
Block a user