Storing images in the static folder is usually the go-to solution especially if it is dynamic (loaded from a CMS or something), but this means you lose out on Vite’s image optimizations. I always have to come back to this answer to figure out how to load them from inside the lib or src folders.