// @ts-ignore /** @type {import("next").NextConfig} */ const config = { output: 'export', trailingSlash: true, // Configuration for custom domain deployment distDir: 'out', images: { unoptimized: true, remotePatterns: [ { protocol: 'https', hostname: '*', pathname: '**', }, ], }, eslint: { ignoreDuringBuilds: true, }, typescript: { ignoreBuildErrors: true, }, productionBrowserSourceMaps: true, webpack: (config, { isServer }) => { config.stats = "verbose"; config.devtool = 'source-map' // Enhanced node polyfills for postgres and other modules if (!isServer) { config.resolve.fallback = { ...config.resolve.fallback, // File system - never needed in browser fs: false, net: false, tls: false, crypto: false, stream: false, 'perf_hooks': false, // Definitely not needed in browser child_process: false, dns: false, }; } return config; }, }; export default config;