Create an Image CDN integration
It’s possible for frameworks and other tools to dynamically configure the Netlify Image CDN on behalf of their users, without asking them to modify their own Netlify configuration files.
To make this happen, your framework should write a file to the .netlify/deploy/v1/config.json
path with the configuration properties you wish to set.
# Configure allowed domains
To specify the list of allowed domains, set the images.remote_images
array.
// .netlify/deploy/v1/config.json
{
"images": {
"remote_images": [
"https://my-images.com/.*",
"https://animals.more-images.com/[bcr]at/.*"
]
}
}
This is the JSON equivalent of the remote_images
property used in the netlify.toml
file.
Did you find this doc useful?
Your feedback helps us improve our docs.