Skip to content

Commit 5565a64

Browse files
committed
feat(docs): add redirect from old docs to new equivalent destinations
1 parent 08ff4ac commit 5565a64

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

apps/docs/next.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,25 @@ const config = {
5050
compiler: {
5151
removeConsole: process.env.NODE_ENV === 'production' ? { exclude: ['error'] } : false,
5252
},
53+
async redirects() {
54+
return [
55+
{
56+
source: '/getting-started/introduction',
57+
destination: '/',
58+
permanent: true,
59+
},
60+
{
61+
source: '/getting-started/initial-setup',
62+
destination: '/docs/installation',
63+
permanent: true,
64+
},
65+
{
66+
source: '/components/:slug',
67+
destination: '/docs/components/:slug',
68+
permanent: true,
69+
},
70+
];
71+
},
5372
};
5473

5574
export default withMDX(withExpo(config));

0 commit comments

Comments
 (0)