1f9e958e97
## Summary Follow up regression test for rewrites with a `has` condition throwing errors in older browsers #25208. @timneutkens Let me know if this is what you had in mind? 😸
20 lines
339 B
JavaScript
20 lines
339 B
JavaScript
module.exports = {
|
|
rewrites() {
|
|
return [
|
|
{
|
|
source: '/rewrite-simple',
|
|
destination: '/another',
|
|
},
|
|
{
|
|
source: '/rewrite-with-has',
|
|
has: [
|
|
{
|
|
type: 'query',
|
|
key: 'hasQuery',
|
|
},
|
|
],
|
|
destination: '/another',
|
|
},
|
|
]
|
|
},
|
|
}
|