So my goal is to automatically generate a page at build time that has links to each file of a downloads folder in the public folder. I though that using a astro glob like this const options = await Astro.glob('../../public/downloads/*') would work and then a map i the html to build out a site, eg: {options.map((option) =>{return <p>{option.default}</p>})}, and this works when running the dev server, but as soon as i build it seems to base64 encode the files and embed them into the html, which is not what i want...
#Astro glob get filepath
2 messages · Page 1 of 1 (latest)