next.js
78507bcf - fix!: add sharp timeout of 10 seconds (#65517)

Commit
1 year ago
fix!: add sharp timeout of 10 seconds (#65517) This PR [configures sharp](https://sharp.pixelplumbing.com/api-output#timeout) with a timeout of 10 seconds when optimizing an image. Anything longer will throw an error which we will catch and [fallback to serving the unoptimized source image](https://github.com/vercel/next.js/blob/c942006d83d504822ff2f6822fa2608e8e773324/packages/next/src/server/image-optimizer.ts#L637). Closes NEXT-3359
Author
Parents
Loading