21 lines
339 B
JavaScript
21 lines
339 B
JavaScript
|
module.exports = {
|
||
|
rewrites() {
|
||
|
return [
|
||
|
{
|
||
|
source: '/rewrite-simple',
|
||
|
destination: '/another',
|
||
|
},
|
||
|
{
|
||
|
source: '/rewrite-with-has',
|
||
|
has: [
|
||
|
{
|
||
|
type: 'query',
|
||
|
key: 'hasQuery',
|
||
|
},
|
||
|
],
|
||
|
destination: '/another',
|
||
|
},
|
||
|
]
|
||
|
},
|
||
|
}
|