Newly migrated LMS fails to build

Hi. @ionlights. The firs thing that jumps out it that asset optimization is incompatible with our Large Media service as documented here. Quoting:

Netlify Large Media is not compatible with Netlify’s built-in asset optimization. If you enable Netlify Large Media, you need to select Disable asset optimization in your site dashboard under Settings > Build & deploy > Post processing > Asset optimization .

I know you have it disabled for images but would you please try disabling it completely.

Also, if Hugo is processing those images during the build, that is also incompatible with Large Media. Again, quoting from the same page:

Files tracked with Large Media are uploaded directly to the Netlify Large Media storage service on push, completely bypassing the site build. This saves build time, but also means that the files are not available to tools that process asset files during the build, such as Hugo’s image processing or the gatsby-image plugin. Depending on your needs, you may be able to replace this functionality with Netlify’s image transformation service.

If you want to uninstall Large Media, please see the following support guide:

If there are other question or if you want to uninstall Large Media, please reply here anytime.