Skip to content

Add all posters images in one location via a CDN #7

@acollierr17

Description

@acollierr17

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions