import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  output: 'export',
  basePath: '/ui',
  assetPrefix: '/ui',
  trailingSlash: true,
  images: {
    unoptimized: true,
  },
  // Generate fallback pages for better routing
  generateBuildId: async () => {
    return 'stable-diffusion-ui'
  },
};

export default nextConfig;
