Integration between Aliyun CDN and the image module.
To use this provider you just need to specify the base URL (zone) of your service:
export default defineNuxtConfig({
image: {
aliyun: {
baseURL: 'https://that-test.site'
}
}
})
Example:
<NuxtImg
provider="aliyun"
src="/burger.jpeg"
height="300"
:modifiers="{ fit: 'contain' }"
/>
baseURLDefault: /
Your deployment's domain (zone).
Example:
{
resize: {
fw: 900,
fh: 200
},
rotate: 180,
bright: 50,
...
}
For more modifiers configuration items, see Aliyun CDN docs.