/** @type {import('next').NextConfig} */

const isExport = process.env.EXPORT_STATIC === "true";

const nextConfig = {
  reactStrictMode: true,
  trailingSlash: false,
  images: {
    unoptimized: true,
  },
  ...(isExport && { output: "export" }), // ⬅️ dynamisch aktivieren
};

export default nextConfig;
