Is your feature request related to a problem? Please describe.
Currently, I'm accounting for multiple hostnames regarding using next/image. I don't truly know how many hosts there are, and I don't know if the hosts are using HTTP or HTTPS, so ultimately, I would be dealing with the issue in both development and production.
|
remotePatterns: [ |
|
{ |
|
protocol: 'https', |
|
hostname: '**.nflxso.net', |
|
}, |
|
{ |
|
protocol: 'http', |
|
hostname: '**.nflxso.net', |
|
}, |
|
{ |
|
protocol: 'https', |
|
hostname: '**.ssl-images-amazon.com' |
|
}, |
|
{ |
|
protocol: 'http', |
|
hostname: '**.nflximg.net', |
|
}, |
|
{ |
|
protocol: 'https', |
|
hostname: '**.nflximg.net' |
|
} |
|
] |
Describe the solution you'd like
Download all previous and future images to a CDN and serve that image instead. This way, I'm restricted to just one hostname and won't worry about accommodating multiple hostnames for security purposes.
Describe alternatives you've considered
For now, I can add new host names as I see fit. But the aforementioned solution is the best route to take.
Additional context
I have experience using AWS Cloudfront and S3, so that is one route I can take to implement the CDN.
Is your feature request related to a problem? Please describe.
Currently, I'm accounting for multiple hostnames regarding using
next/image. I don't truly know how many hosts there are, and I don't know if the hosts are using HTTP or HTTPS, so ultimately, I would be dealing with the issue in both development and production.netflix-refresh/next.config.mjs
Lines 23 to 44 in 577fa13
Describe the solution you'd like
Download all previous and future images to a CDN and serve that image instead. This way, I'm restricted to just one hostname and won't worry about accommodating multiple hostnames for security purposes.
Describe alternatives you've considered
For now, I can add new host names as I see fit. But the aforementioned solution is the best route to take.
Additional context
I have experience using AWS Cloudfront and S3, so that is one route I can take to implement the CDN.