8a1c9937b6
This makes sure to also check if a dynamic route matched after resolving a rewrite on the client to match behavior on the server. It also adds tests for this behavior to ensure it is working properly. Fixes: https://github.com/vercel/next.js/issues/16454
14 lines
234 B
JavaScript
14 lines
234 B
JavaScript
module.exports = {
|
|
rewrites() {
|
|
return [
|
|
{
|
|
source: '/:path*',
|
|
destination: '/:path*',
|
|
},
|
|
{
|
|
source: '/:path*(/?(?!.html))',
|
|
destination: '/category/:path*',
|
|
},
|
|
]
|
|
},
|
|
}
|