fix(imgproxy): fallback to smart gravity (sm) instead of face detection (fv)

- 'fv' requires ML modules not present in standard imgproxy image
- 'sm' is robust and supported everywhere
- Fixes broken images on staging using Next.js Image loader
This commit is contained in:
2026-02-19 18:05:29 +01:00
parent 20fdab326d
commit f7c743b69c

View File

@@ -28,6 +28,6 @@ export default function imgproxyLoader({
return getImgproxyUrl(src, {
width,
resizing_type: 'fit',
gravity: 'fv', // Use face-aware focusing (face detection)
gravity: 'sm', // Use smart gravity (content-aware) instead of face detection (requires ML)
});
}