mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
24 lines
451 B
JavaScript
24 lines
451 B
JavaScript
module.exports = {
|
|
// replace me
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/blog-post-1',
|
|
destination: '/blog/post-1',
|
|
},
|
|
{
|
|
source: '/blog-post-2',
|
|
destination: '/blog/post-2?hello=world',
|
|
},
|
|
{
|
|
source: '/blog-:param',
|
|
destination: '/blog/post-3',
|
|
},
|
|
{
|
|
source: '/rewrite-source/:path+',
|
|
destination: '/rewrite-target',
|
|
},
|
|
]
|
|
},
|
|
}
|