45b8c88521
This ensures we are checking the filesystem correctly when i18n is used to prevent fallback rewrites from being applied even when a page is matched. Additional tests have been added to ensure these cases are being handled. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added Fixes: https://github.com/vercel/next.js/issues/23577
16 lines
239 B
JavaScript
16 lines
239 B
JavaScript
module.exports = {
|
|
i18n: {
|
|
locales: ['en', 'fr'],
|
|
defaultLocale: 'en',
|
|
},
|
|
rewrites() {
|
|
return {
|
|
fallback: [
|
|
{
|
|
source: '/:path*',
|
|
destination: '/another',
|
|
},
|
|
],
|
|
}
|
|
},
|
|
}
|