Next.js Discord

Discord Forum

how can I override all requests to images stored externally?

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Avatar
Morelet’s CrocodileOP
Hi,
We need to redirect all requests to images stored on a firebase storage domain to a reverse proxy at route /api/image-proxy?url=
Basically we have a corporate client with an annoying firewall that seems to block them, and we want to fetch the image and send it back from our domain to make it seems like it comes from us.

Is it possible with Next.js ? I tried with rewrites but it only seems to support doing that with a local source

Thank you

0 Replies