mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
39 lines
632 B
Plaintext
39 lines
632 B
Plaintext
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'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|