Does someone know why do i get this error when i try to load images on the deployed version on vercel, locally there is no errors, is there anything wrong with my code or it's a vercels problem ```const ImageUploadComponent = async () => { noStore(); const user = await getLoggedInUser(); const currentLoggedInUser = await getSavedUser(user?.$id);
const fileId = await currentLoggedInUser?.profileImage;
const userProileImage = fileId ? await getProfileImage(fileId) : null;
const currentImage = fileId ? new Buffer.from(userProileImage).toString("base64") : null;
return ( <section className="container px-2 md:px-10 py-10 mx-auto bg-white rounded-md"> <div> {/* <h3 className="title font-bold border-b mb-10">Photo de profile</h3> */} <div className="border border-dashed rounded-md flex flex-col sm:flex-row p-2 h-fit gap-2 "> {userProileImage && ( <ServerProfileImage fileId={fileId} currentImage={currentImage} /> )}
<AvatarComponent fileId={fileId} />
{/* )} */}
</div>
</div>
</section>
); };
export default ImageUploadComponent; ```
Recommended threads
- Getting this error when creating a websi...
when I visit the site I get 404, even if the deployment is successfull
- Google OAuth2 Login on Expo/React Native...
Does anyone has a guide on how to implement this on a Expo project? I've been trying to implement it, used AI and etc but can't. 1. Do I have to have a domain/...
- Google's "Choose an account" screen stuc...
I've been struggling with this problem on my servers (self hosted 1.6.0 & 1.7.4) , multiple projects , multiple apps , and I think I have reached a very strange...