Skip to content

Commit

Permalink
nixed FAQ (keystonejs#5541)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikwilkowski authored Apr 26, 2021
1 parent 71e5893 commit 12af145
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
1 change: 0 additions & 1 deletion docs/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export function Navigation() {
<NavItem href="/">Welcome</NavItem>
<NavItem href="/whats-new">What's New</NavItem>
<NavItem href="/roadmap">Roadmap</NavItem>
<NavItem href="/faqs">FAQs</NavItem>
<Section label="Tutorials">
<NavItem href="/tutorials/getting-started-with-create-keystone-app">
Getting started
Expand Down
14 changes: 14 additions & 0 deletions docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ const withMDX = require('@next/mdx')({
},
});

const redirects = {
async redirects() {
// if this array becomes bigger than 3 entries, please make it a separate file
return [
{
source: '/faqs',
destination: '/',
permanent: true,
},
];
},
};

module.exports = withPlugins([
withPreconstruct,
withImages,
Expand All @@ -26,4 +39,5 @@ module.exports = withPlugins([
};
return nextConfig;
},
redirects,
]);
10 changes: 0 additions & 10 deletions docs/pages/faqs.mdx

This file was deleted.

0 comments on commit 12af145

Please sign in to comment.