Skip to content

Commit

Permalink
docs: Fix redirect issue with FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
birkjernstrom committed Jul 6, 2024
1 parent 7b741a7 commit aa3c20d
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions clients/apps/web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,34 @@ const nextConfig = {
permanent: true,
},

// FAQ to docs
{
source: '/faq',
destination: '/docs/faq/overview',
permanent: false,
},
{
source: '/faq/:path*',
destination: '/docs/faq/:path*',
permanent: false,
},
// Redirect old FAQ to docs.polar.sh
...ENVIRONMENT === 'production' ?
[
{
source: '/faq',
destination: 'https://docs.polar.sh/faq/overview',
has: [
{
type: 'host',
value: 'polar.sh',
}
],
permanent: true,
},
{
source: '/faq/:path*',
destination: 'https://docs.polar.sh/faq/:path*',
has: [
{
type: 'host',
value: 'polar.sh',
}
],
permanent: true,
},
]
:
[],

// Logged-out user redirection
{
Expand Down

0 comments on commit aa3c20d

Please sign in to comment.