During development, I was hosting all uploaded wallpapers to my Glitch.com server which worked well in dev and for testing. But in production, there's no way I would be able to keep it configured like this. The `/public/app/` directory where the images were uploaded totalled at 400MB and was nearly half full due to 3rd party package installations. Combine that with the generated wallpapers averaging 5MB a pop, I was running out of space quick. During development, I wrote a function that would delete the 5 oldest wallpapers whenever the directory reached 95% utilization, but again, this would have just been a poor *real world* production experience.
0 commit comments