rsnext/test/integration/i18n-support-index-rewrite/next.config.js
JJ Kasper 75509164ab
Ensure domain locales are redirected client-side (#20562)
This ensures we detect domain specific locales and redirect them client-side. Tests have been added in the `i18n` suite to ensure the domain redirect is applied correctly during a client-side navigation

Fixes: https://github.com/vercel/next.js/issues/19174
2020-12-30 06:44:07 +00:00

15 lines
277 B
JavaScript

module.exports = {
i18n: {
// localeDetection: false,
locales: ['nl-NL', 'nl-BE', 'nl', 'fr-BE', 'fr', 'en'],
defaultLocale: 'en',
},
async rewrites() {
return [
{
source: '/',
destination: '/company/about-us',
},
]
},
}