Skip to content
Advertisement

Tag: next-images

How to import SVG into Next.js component?

I am trying to import an SVG image from file into a Next.js component. In the assets folder I have google.svg (icon): I need to import that SVG inside of this inside of the Next.js component: I installed this package: https://www.npmjs.com/package/next-images and set configuration based on that documentation in next.config.js: Why my import of SVG does not work? Answer Another

Advertisement