mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? In environments where `FileSystemCache` is used, the cache for static resources such as image files will be broken. ### Why? Because `fs.readFile(path, 'utf8')` tries to read a file as a `string`. ### How? Change to use `fs.readFile(path)` to always read files as binary (`Buffer`).