cyrilwanner / next-optimized-images

🌅 next-optimized-images automatically optimizes images used in next.js projects (jpeg, png, svg, webp and gif).
MIT License
2.21k stars 93 forks source link

add custom loader to next.config.js in README #271

Open JBaczuk opened 2 years ago

JBaczuk commented 2 years ago

In order to get my Next.js project to export using next export I had to add this code to the next.config.js:

images: {
  loader: 'custom'
}

See https://github.com/vercel/next.js/issues/21079#issuecomment-899535752