3x071c / lsg-remix

[ARCHIVED] ✨ Full-stack school homepage / TypeScript, Remix (React), Prisma, CI/CD and more
GNU Affero General Public License v3.0
12 stars 5 forks source link

Images #223

Open 3x071c opened 2 years ago

3x071c commented 2 years ago

There are multiple components to this, which should be split into their own issues:

We should consider delegating image optimization to a dedicated service, such as imaginary, which can be hosted on Fly together with the app itself.

3x071c commented 2 years ago

Update: We can use persistent volumes on Fly to store uploaded images. Via a GitHub cronjob, we can then iterate over the uploaded images every day and optimize them via sharp. The <Image> component then sources the images from the volume mount point and first attempts to load an optimized version for the client before resorting to the original.

Rescheduling to M3