mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This PR adds a new configure property, `images.loaderFile` that allow you to define a path to a file with an exported image loader function. This is useful when migrating from `next/legacy/image` to `next/image` because it lets you configure the loader for every instance of `next/image` once, similar to the legacy "built-in loaders".
7 lines
97 B
JavaScript
7 lines
97 B
JavaScript
module.exports = {
|
|
images: {
|
|
loader: 'custom',
|
|
loaderFile: './dummy-loader.js',
|
|
},
|
|
}
|