---
title: "Comment by Oscar Cárcamo Zumelzu on \"Image optimization for static NextJS sites\" | Hashnode"
description: "Hi! I&#39;m using next.js with ant design and in the next.config.js I need to use module.exports = withAntdLess({ ... }) So, how can I add withOptimizedImages i"
url: "https://hashnode.com/posts/image-optimization-for-static-nextjs-sites/604cae1e37d84907f1327f94/comment/61521a97040ee87236950749"
---

[Discussion](https://hashnode.com/posts/image-optimization-for-static-nextjs-sites/604cae1e37d84907f1327f94)

Comment [Image optimization for static NextJS sites](https://hashnode.com/posts/image-optimization-for-static-nextjs-sites/604cae1e37d84907f1327f94)

[Oscar Cárcamo Zumelzu](https://hashnode.com/@oscars810)

[Sep 27, 2021](https://hashnode.com/posts/image-optimization-for-static-nextjs-sites/604cae1e37d84907f1327f94/comment/61521a97040ee87236950749)

Hi! I'm using next.js with ant design and in the `next.config.js` I need to use

```
module.exports = withAntdLess({ ... })
```

So, how can I add `withOptimizedImages` in the config? :(

Thanks!

[Iva Kop](https://hashnode.com/@IvaKop)

[Sep 28, 2021](https://hashnode.com/posts/image-optimization-for-static-nextjs-sites/604cae1e37d84907f1327f94/comment/61521a97040ee87236950749#reply-61532647414f78089df3af0c)

Hi, Oscar! Did you try [next-compose-plugins](https://www.npmjs.com/package/next-compose-plugins)?
