Allow customisation of upstream image timeout #72951
Replies: 6 comments 4 replies
-
I also need this! |
Beta Was this translation helpful? Give feedback.
-
Is there a specific reason why it was hardcoded to 7 seconds instead of another value? |
Beta Was this translation helpful? Give feedback.
-
Anyone find any solutions for this? |
Beta Was this translation helpful? Give feedback.
-
@leerob any insight on this please? |
Beta Was this translation helpful? Give feedback.
-
Need this feature badly |
Beta Was this translation helpful? Give feedback.
-
I'm using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Allow loading and optimisation of extremely large image and not just a hard coded 7 seconds
Non-Goals
No response
Background
I'm trying to load extremely large image (20GB) but it throws
DOMException {stack: 'TimeoutError: The operation was aborted due t…ss.processTimers (node:internal/timers:529:7)'}
after 7 seconds#65821
Proposal
Add an experimental config in next.config.ts for external image fetching just like the imgOptTimeoutInSeconds option for sharp timeout.
next.js/packages/next/src/server/image-optimizer.ts
Line 568 in 720fe35
Beta Was this translation helpful? Give feedback.
All reactions