Option to configure next/image to fetch with proxy https_proxy #21874
Replies: 5 comments
-
Is there any progress? I'm facing the same issue |
Beta Was this translation helpful? Give feedback.
-
Same problem here. We are behind a corporate firewall and we have to use a custom server just to setup the Global Agent package. Being able to setup fetchOptions, to setup our proxy would allow us to run on NextJS without custom server. Is it really completed as marked in #21872? Anyone knows if it's really possible to do it? |
Beta Was this translation helpful? Give feedback.
-
@timneutkens this one is important for corporate firewalls. Next 13 is not using HTTPS_PROXY env everywhere, so we still have to user custom server |
Beta Was this translation helpful? Give feedback.
-
any updates on this one? |
Beta Was this translation helpful? Give feedback.
-
Is there any progress on this? |
Beta Was this translation helpful? Give feedback.
-
Describe the feature you'd like to request
My feature request is very similar to the one mentioned here. The NextJS application is deployed behind a firewall that requires the network calls to go through a proxy. This way the requests that the next/image does from the server side are failing.
Describe the solution you'd like
I would like to be able to configure the fetchOptions that are used by next/image to fetch the images, or the fetchOptions'
agent
property.Describe alternatives you've considered
Setting the global proxy agent is not an option for me because that way other requests are failing that are done on server side in
getServerSideProps
functions.Beta Was this translation helpful? Give feedback.
All reactions