Refactor image upload handling by moving upload directory outside of public folder for better compatibility with Next.js. Update related Docker configurations and scripts to reflect new upload paths. Replace instances of Next.js Image component with CmsImage for consistent image handling across the application.
This commit is contained in:
1 parent
0a57ef2b80
commit
1641edfd01
19 files changed
+162
-39
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import Image from "next/image";
|
||||
import { ExternalLink, GraduationCap } from "lucide-react";
|
||||
import { CmsImage } from "@/components/atoms/CmsImage";
|
||||
import { Heading } from "@/components/atoms/Heading";
|
||||
import { SurfaceCard } from "@/components/molecules/SurfaceCard";
|
||||
import { buttonVariants } from "@/components/ui/button";
|
||||
@@ -25,7 +25,7 @@ export function FacultyMemberCard({ member }: { member: FacultyMember }) {
|
||||
<SurfaceCard className="group flex h-full flex-col rounded-2xl">
|
||||
<div className="relative mb-5 aspect-[4/3] overflow-hidden rounded-xl bg-muted">
|
||||
{photo ? (
|
||||
<Image
|
||||
<CmsImage
|
||||
src={member.imageUrl}
|
||||
alt={member.name}
|
||||
fill
|
||||
|
||||
Reference in new issue
Block a user