'Deploying Out folder in NextJS 12.1.0

Before the new version 12.1.0 of NextJS when i ran the command run build && export i would get this Out folder, which I could upload to any host, for example Netlify and that would deploy my website without any more problems.

Out folder before NextJS 12

However, since then, when i exceute that command, i get this other version of the Out folder, which doesn't work the same when I upload it, and I don't really know how to solve it, because i need to update my project from Next JS 11 to 12 but this thing is avoiding me from it.

Out folder after NextJS 12



Solution 1:[1]

I solved the problem by replacing the Image component from the 'next/image' with the standard html img tag.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mariam Nahapetyan