I want to write a simple photos gallery in NuxtJS 3 where I can throw photos in the public/ or assets/ directories, and then generate a static version of the site for deployment.
I am wondering what is the best way to read the content of the assets/ and public/ directories and store them as an array of file-names?
I tried different approaches: With fs.readdirSync and with storing the list to some env var: process.env.STATIC_REFERRAL_DOCS.
Both approaches I could not get to work properly. Any help/hint welcome :)