import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  allowedDevOrigins: ["http://localhost:3000"],
  images: {
    remotePatterns: [
      {
        protocol: "https",
        hostname: "lh3.googleusercontent.com",
      },
      {
        protocol: "https",
        hostname: "scontent.famd5-1.fna.fbcdn.net",
      },
      {
        protocol: "https",
        hostname: "reelflix.b-cdn.net",
      },
      {
        protocol: "https",
        hostname: "reelflix-archana2.b-cdn.net",
      },
      {
        protocol: "https",
        hostname: "reelflix-test.b-cdn.net",
      },

      // ✅ Add Facebook CDN Variants
      {
        protocol: "https",
        hostname: "*.fbcdn.net",
      },
      {
        protocol: "https",
        hostname: "*.fna.fbcdn.net",
      },
      {
        protocol: "https",
        hostname: "*.xx.fbcdn.net",
      },
      {
        protocol: "https",
        hostname: "scontent-bom2-1.xx.fbcdn.net",
      },
      {
        protocol: "https",
        hostname: "s3.eu-south-1.wasabisys.com",
      },
      {
        protocol: "https",
        hostname: "vz-bb070104-335.b-cdn.net",
      },
      {
        protocol: "https",
        hostname: "reelflix-s3.s3.ap-south-1.amazonaws.com",
      }
    ],
  },
};

export default nextConfig;
