File size: 451 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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',
      },
    ]
  },
}