Kevin
Kevin
TTCTheo's Typesafe Cult
Created by Kevin on 12/3/2024 in #questions
Specify account id in Next.js config pathname
In the video linked below (minute 5:14) Theo explains that it is important to add your UploadThing account identifier to the pathname in next.config.js to prevent others from optimising their images through your your Next.js App. However it doesn't seem like my images uploaded to UploadThing are hosted under that URL route. In the image URL, the file key comes right after /f/, for example: https://utfs.io/f/osAUv9zfuFLpB7YEJ936t2S0eHjMlpcf4KR8Wm17iZDb4k3N. My account identifier (e.g. xyz ) is not part of the image url. I'm sure I must be doing something wrong but it is not obvious to me what it is? https://youtu.be/jsuNjCAngnQ?si=9wzXylcg3r619IEn&t=314
2 replies