feat: product images upload and display

This commit is contained in:
2025-10-20 16:13:05 +04:00
parent 8cc11bca67
commit 82f08b4f83
12 changed files with 380 additions and 226 deletions

10
fix-zod.ts Normal file
View File

@ -0,0 +1,10 @@
import * as fs from "fs";
const path = "src/lib/client/zod.gen.ts";
let content = fs.readFileSync(path, "utf8");
// Replace only for the upload schema
content = content.replace("upload_file: z.string", "upload_file: z.any");
fs.writeFileSync(path, content);
console.log("✅ Fixed zod schema for upload_file");