feat: integrate Cloudinary, add new fleet items and image gallery

This commit is contained in:
2026-04-16 20:52:12 +03:00
parent bac925b5bc
commit 0efef41f5d
94 changed files with 494 additions and 19 deletions

8
lib/cloudinary.ts Normal file
View File

@@ -0,0 +1,8 @@
const CLOUDINARY_BASE = "https://res.cloudinary.com/du7xohbct/image/upload/aydogan";
export const cloudinaryUrl = (path: string) => {
if (!path || !path.startsWith("/images/")) return path;
const parts = path.replace("/images/", "").split("/");
const encodedParts = parts.map(part => encodeURIComponent(part));
return `${CLOUDINARY_BASE}/${encodedParts.join("/")}`;
};