Skip to content

Commit

Permalink
馃敡 Add blog endpoint to viewer rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Apr 19, 2024
1 parent 6fe4e28 commit e4e724d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/viewer/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@ const nextConfig = {
],
}))
)
.concat([
{
source: '/blog',
destination: `${process.env.LANDING_PAGE_URL}/blog`,
},
{
source: '/blog/:slug',
destination: `${process.env.LANDING_PAGE_URL}/blog/:slug`, // Matched parameters can be used in the destination
},
])
: []
)
.concat([
Expand Down

0 comments on commit e4e724d

Please sign in to comment.