Allow customisation of upstream image timeout #72951
bill-zhanxg
started this conversation in
Ideas
Replies: 1 comment
-
I also need this! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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