
I'm trying to work as much server-side rendered (SSR) NextJS application as possible, along with appwrite as backend. I've managed to create image upload for users, but now I'm strugling how to properly view/fetch images for users.
I've created both abstracted session clients for client-usage and server-usage. I found from documentation that you're able to get appwrite storage image link with WEB appwrite
-package with storage.getFilePreview
-method. Thou NextJS <Image>
component can't really handle that, and after all, they both do kind of same job (image optimization).
I wounder if I should just fallback to use regular <img>
-tag for my images and make all images client component, which retrieves image URL with appwrite-WEB-SDK, or is there some more convient way to fetch images from storage, to use NextJS <Image>
component?
Recommended threads
- Duration of mp3 file.
Can I get the duration of an MP3 file stored in Appwrite storage?
- Feature request: add version id to image...
Can Appwrite add a feature, such as a version ID, to make image URLs unique when needed? Currently, if I upload a new image using the existing ID, browsers and ...
- 404 if I try to access a non-existent bu...
When I try to access my profile_pictures bucket, Appwrite just gives a 404 error. I made it at the beginning of the year and since I created it this has happene...
