How resize .svg
in next?
-
Next has default value set on
removeViewBox: true
, so you can not resize svg in Next. This is example how you can change valueremoveViewBox
tofalse
. -
More info:
next.config.js
...
overrides: { removeViewBox: false }
...
First run:
npm run dev