rsnext/test/integration/rewrites-has-condition/next.config.js
Jamie 1f9e958e97
Follow up rewrites regression test for #25208 (#25282)
## 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? 😸
2021-05-20 12:39:56 +00:00

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',
},
]
},
}