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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...