Regression in i18n domain-based locale detection incorrectly overrides defaultLocale on main domain
In Next.js 15.4+, when a locale is listed in the domains array of next.config, requests to the default domain for that locale incorrectly receive the domain's defaultLocale instead of the main defaultLocale. This causes wrong defaultLocale in getServerSideProps and next/link hrefs, leading to hydration errors.
