39 lines
632 B
Text
39 lines
632 B
Text
|
module.exports = phase => {
|
||
|
return {
|
||
|
rewrites() {
|
||
|
return [
|
||
|
{
|
||
|
source: '/hello-1',
|
||
|
destination: '/world'
|
||
|
},
|
||
|
{
|
||
|
source: '/hello-2',
|
||
|
destination: '/world'
|
||
|
},
|
||
|
]
|
||
|
},
|
||
|
redirects() {
|
||
|
return [
|
||
|
{
|
||
|
source: '/hello-3',
|
||
|
destination: '/world',
|
||
|
permanent: false
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
headers() {
|
||
|
return [
|
||
|
{
|
||
|
source: '/hello-4',
|
||
|
headers: [
|
||
|
{
|
||
|
key: 'x-path',
|
||
|
value: 'hello-4'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|