DogPawHat
DogPawHat
TTCTheo's Typesafe Cult
Created by junglesquirrel on 11/21/2023 in #questions
Serving user uploaded content in NextJS - infrastructure without a CMS
6 replies
TTCTheo's Typesafe Cult
Created by junglesquirrel on 11/21/2023 in #questions
Serving user uploaded content in NextJS - infrastructure without a CMS
Tag your images with a uuid on upload and use that for your cache key.
6 replies
TTCTheo's Typesafe Cult
Created by junglesquirrel on 11/21/2023 in #questions
Serving user uploaded content in NextJS - infrastructure without a CMS
Yeah, when in doubt, cache, cache, cache.
6 replies
TTCTheo's Typesafe Cult
Created by junglesquirrel on 11/21/2023 in #questions
Serving user uploaded content in NextJS - infrastructure without a CMS
Where is NextJS itself hosted? I think the easised thing to do is use ISR on Vercel so you get caching on the edge by default. You have the main storage but not the CDN, and Vercel will give you that for free. If it's not Vercel, it's a bit harder depending on what you are doing. What version of next are you using and are you using app or pages router?
6 replies