Skip to content

Commit

Permalink
feat(next-config): add redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
chengpeiquan committed Dec 22, 2024
1 parent ad9dbe6 commit b083774
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ const nextConfig = {
)
return config
},
async redirects() {
return [
{
source: '/topic/netease/:slug*',
destination: '/article/my-five-years-working-at-netease',
permanent: true,
},
]
},
}

export default withNextIntl(nextConfig)

0 comments on commit b083774

Please sign in to comment.