Skip to content

Commit

Permalink
fix: redirect all explore requests to the new explore page (#4112)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Sep 19, 2024
1 parent 6bb368c commit 182f091
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,19 @@ module.exports = millionLint({
...interests.map((interest) => {
return {
source: `/${interest}/:tool(dashboard|reports|contributors|activity)`,
destination: `/explore/topic/${interest}/:tool`,
destination: `/explore`,
permanent: true,
};
}),
{
source: `/explore/topic/:slug*`,
destination: `/explore`,
permanent: true,
},
...interests.map((interest) => {
return {
source: `/${interest}`,
destination: `/explore`,
permanent: true,
};
}),
Expand All @@ -141,14 +153,6 @@ module.exports = millionLint({
},
];
},
async rewrites() {
return [
{
source: "/explore/topic/:topic",
destination: "/explore/topic/:topic/dashboard/filter/recent",
},
];
},
});

// Injected content via Sentry wizard below
Expand Down

0 comments on commit 182f091

Please sign in to comment.