import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  /* config options here */
   reactStrictMode: true,
  productionBrowserSourceMaps: true, // ✅ allows error tracing in production
  poweredByHeader: false,
  async redirects() {
    return [
      {
        source: '/:path*',
        has: [
          {
            type: 'host',
            value: 'www.banksfinders.com',
          },
        ],
        destination: 'https://banksfinders.com/:path*',
        permanent: true,
      },
    ];
  },
};

export default nextConfig;
