Best way to handle Image with arbitrary src #46399
-
|
It is my situation that the images are from different unkown cdn. According the docs, I have to define However, as I mentioned above, in this case never could I list all the cdn hosts in the I just wonder if there is a way to do so? Or should I use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
From the docs:
So you can have something like: module.exports = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
},
}which will allow any domain. |
Beta Was this translation helpful? Give feedback.
From the docs:
So you can have something like:
which will allow any domain.