hey folks can anyone help me in using the SVG in NextJs as react component I'm using the @svgr/webpack and app router and here is my next-config.js file but it's not working can anyone tell me what I'm doing wrong
await import("./src/env.js");
/** @type {import("next").NextConfig} */
const config = {
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/i,
use: ["@svgr/webpack"],
});
return config;
},
};
export default config;