feat: product images upload and display
This commit is contained in:
10
fix-zod.ts
Normal file
10
fix-zod.ts
Normal 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");
|
||||
Reference in New Issue
Block a user