In the next.js guide, https://supabase.com/docs/gu...
# off-topic
d
In the next.js guide, https://supabase.com/docs/guides/with-nextjs#bonus-profile-photos
from.download()
is used to generate a url for displaying avatars. For public buckets is using
from.getPublicUrl()
better? Are there any benefits to using either of thsse?
g
I would use getPublicUrl for public buckets. It does not generate a database/storage call (just builds the url) and the file is then only downloaded when you use the url.
d
Okay...
Thank you very much 🙌