So I am using Next.js API for the backend of my project and Mongodb for the database.
I have to serve images which have been uploaded by users on the runtine. As these files weren't available yet during the build time, they are not recognized as static files which can be stored in public directory.
I have tried next-images, added some configurations in the
next.config.jsand in my code:<img src={require(../../../images/${picture.src})} alt={picture.legend} />.
I also tried with file-loader but still got no luck.
What did I miss?
Thanks for any reply!
