next-images breaking all the absolute paths in my next.js project
As the user @juliomalves mentioned above, the answer is on this link from the Next.js official documentation.
Basically, the issue was fixed in 2 steps:
-
Adding a
jsconfig.json
file (if you're using Typescript, you should usetsconfig.json
instead). -
changing all the absolute paths from
/components/Something
tocomponents/Something
(in other words, removing the first forward slash).