import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  output: "standalone",
  images: {
    // Allows loading images from any external CDN or domain
    remotePatterns: [
      { protocol: "https", hostname: "images.unsplash.com" },
      { protocol: "https", hostname: "placehold.co" },
      { protocol: "https", hostname: "via.placeholder.com" },
      { protocol: "https", hostname: "**" },
      { protocol: "http", hostname: "**" }
    ],
    // If you use a dedicated CDN (like Cloudflare), Next.js automatically
    // optimizes images. You can also specify a custom loader here if needed.
  }
};

export default nextConfig;
