How to display images without exposing the directus URL?

I build a web with nextjs 13.5.1 and directus 11.9.2 as my backend. To display content, I’m using SSR so my directus url didn’t exposed to browser.

But, I’m confused with images. To display image, used to https://mydirectusurl/assets/id. But how to do that without exposing directus URL? Is it safe exposing directus URL to browser?

Hello,

You can create a proxy route in the NextJs, to serve the images.