Open leynier opened 9 months ago
This is probably related to dangerouslyAllowSVG
params on https://docs.aws.amazon.com/amplify/latest/userguide/image-optimization.html
Fixed with the right config:
export default defineNuxtConfig({
nitro: {
awsAmplify: {
imageSettings: {
dangerouslyAllowSVG: true
}
}
}
})
It works fine with that configuration, thanks a lot @JhumanJ
PNG images work correctly. For example, for the file:
https://nuxt.educup.io/img/achievement-1.png
Through the image module, it also works correctly:
https://nuxt.educup.io/_amplify/image?url=/img/achievement-1.png&w=1280&q=100
But for the SVG file:
https://nuxt.educup.io/img/logo-white-tm.svg
The URL provided by the image module:
https://nuxt.educup.io/_amplify/image?url=/img/logo-white-tm.svg&w=1280&q=100
Raises the "SVG files are not allowed" error.