next.config.ts 427 B

12345678910111213141516171819
  1. import type { NextConfig } from "next";
  2. const nextConfig: NextConfig = {
  3. output: 'export',
  4. basePath: '/ui',
  5. assetPrefix: '/ui',
  6. trailingSlash: true,
  7. images: {
  8. unoptimized: true,
  9. },
  10. // Generate fallback pages for better routing
  11. generateBuildId: async () => {
  12. return 'stable-diffusion-ui'
  13. },
  14. // Disable React Compiler for React 19 compatibility
  15. reactCompiler: false,
  16. };
  17. export default nextConfig;