Skip to content

Commit

Permalink
feat: redirect car routes
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermespopolin committed Jul 17, 2023
1 parent af38513 commit cc2049d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions apps/store/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,30 @@ module.exports = withBundleAnalyzer({
permanent: true,
locale: false,
})),
{
source: '/(se/)?new-member/car',
missing: [
{
type: 'query',
key: 'code',
},
],
destination: '/se/forsakringar/bilforsakring',
permanent: false,
locale: false,
},
{
source: '/(se/)?new-member/car',
has: [
{
type: 'query',
key: 'code',
},
],
destination: '/api/campaign/:code?code=&next=/se/forsakringar/bilforsakring',
permanent: false,
locale: false,
},
]
},
})
Expand Down

0 comments on commit cc2049d

Please sign in to comment.