diff --git a/components/PhotoImage.tsx b/components/PhotoImage.tsx
index 9eeadff..21c5c01 100644
--- a/components/PhotoImage.tsx
+++ b/components/PhotoImage.tsx
@@ -5,8 +5,9 @@ import Image from "next/image"
export default function PhotoImage({ src, alt }: { src: string; alt: string }) {
// Handle external URLs and local paths
const isExternal = src.startsWith("http://") || src.startsWith("https://")
+ const isLocalUpload = src.startsWith("/uploads/")
- if (isExternal) {
+ if (isExternal || isLocalUpload) {
return (
/* eslint-disable-next-line @next/next/no-img-element */
)
}
diff --git a/components/PhotoThumbnail.tsx b/components/PhotoThumbnail.tsx
index 1f13220..885a1a1 100644
--- a/components/PhotoThumbnail.tsx
+++ b/components/PhotoThumbnail.tsx
@@ -5,10 +5,11 @@ import Image from "next/image"
export default function PhotoThumbnail({ src, alt }: { src: string; alt: string }) {
// Handle external URLs and local paths
const isExternal = src.startsWith("http://") || src.startsWith("https://")
+ const isLocalUpload = src.startsWith("/uploads/")
return (