rsnext/test/integration/fallback-false-rewrite/next.config.js
JJ Kasper 7d77a19af2
Fix fallback: false triggering 404 before rewrites (#24121)
This fixes dynamic pages with `fallback: false` that don't have a matching path causing a 404 before rewrites are checked unexpectedly. This ensures we treat `fallback: false` pages as a match only if they also have a matching static path so that fallback rewrites can be triggered correctly. An additional test suite as been added to ensure this is working as expected. 

## Bug

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
2021-04-16 15:07:24 +00:00

12 lines
172 B
JavaScript

module.exports = {
rewrites() {
return {
fallback: [
{
source: '/:path*',
destination: '/another',
},
],
}
},
}