f02363e0c4
This ensures we match dynamic routes correctly when applying `check: true` behavior with i18n so that no-op rewrites match dynamic routes correctly. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added Fixes: https://github.com/vercel/next.js/issues/23854
18 lines
280 B
JavaScript
18 lines
280 B
JavaScript
module.exports = {
|
|
i18n: {
|
|
locales: ['en', 'fr'],
|
|
defaultLocale: 'en',
|
|
},
|
|
rewrites() {
|
|
return [
|
|
{
|
|
source: '/:path*',
|
|
destination: '/:path*',
|
|
},
|
|
{
|
|
source: '/:path*',
|
|
destination: '/another',
|
|
},
|
|
]
|
|
},
|
|
}
|