import path from "path";
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  /** Statik export: cPanel/Libux — Node.js sunucu gerekmez; `out/` klasörünü FTP ile yükleyin */
  output: "export",
  trailingSlash: true,
  images: {
    unoptimized: true,
    remotePatterns: [
      {
        protocol: "https",
        hostname: "firebasestorage.googleapis.com",
        pathname: "/**",
      },
      {
        protocol: "https",
        hostname: "images.unsplash.com",
        pathname: "/**",
      },
      {
        protocol: "https",
        hostname: "web-site-fa07c.firebasestorage.app",
        pathname: "/**",
      },
    ],
  },
  turbopack: {
    root: path.join(__dirname),
  },
};

export default nextConfig;
