import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  // Static export -> uploads to o2switch (cPanel) as plain files.
  output: "export",
  trailingSlash: true,
  // No server, so the built-in image optimizer is off. Images come from
  // Sanity's image CDN via <SanityImage> (responsive srcset).
  images: { unoptimized: true },
  experimental: {
    // NOTE: `appDir` is intentionally NOT enabled.
    // It requires a running server and is incompatible with `output: "export"`.
    cpus: 1,
  },
  // NOTE: Cache Components / PPR / `use cache` are intentionally NOT enabled.
  // They require a running server and are incompatible with `output: "export"`.
};

export default nextConfig;
