import type { NextConfig } from 'next'; /* output: 'export' is opt-in via STATIC_EXPORT=true. * Set this in CI/deploy — not locally — so the mock API route works * during development and local builds. */ const isExport = process.env.STATIC_EXPORT === 'true'; const nextConfig: NextConfig = { ...(isExport ? { output: 'export' } : {}), images: { unoptimized: true }, }; export default nextConfig;