fix(appointment): use existing doctor image as fallback
The appointment info/location headers fell back to /default-doctor.jpg, which does not exist in public/, so the Next image optimizer returned 400 for doctors without a photo. Point the fallback at the existing /assets/images/doctor.png (same default used on the doctor page). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { imageUrl } from "@/helper";
|
||||
|
||||
function Head({ doctor }) {
|
||||
// تبدیل img array به string
|
||||
const doctorImage = imageUrl(doctor?.img?.[0]?.url, "/default-doctor.jpg");
|
||||
const doctorImage = imageUrl(doctor?.img?.[0]?.url, "/assets/images/doctor.png");
|
||||
|
||||
// تبدیل specialties array به string
|
||||
const expertiseText = doctor?.specialties
|
||||
|
||||
@@ -3,7 +3,7 @@ import { imageUrl } from "@/helper";
|
||||
|
||||
function Head({ doctor }) {
|
||||
// تبدیل img array به string
|
||||
const doctorImage = imageUrl(doctor?.img?.[0]?.url, "/default-doctor.jpg");
|
||||
const doctorImage = imageUrl(doctor?.img?.[0]?.url, "/assets/images/doctor.png");
|
||||
|
||||
// تبدیل specialties array به string
|
||||
const expertiseText = doctor?.specialties
|
||||
|
||||
Reference in New Issue
Block a user