-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
31 lines (28 loc) · 1.04 KB
/
next.config.mjs
File metadata and controls
31 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { createMDX } from 'fumadocs-mdx/next';
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
output: 'standalone',
basePath: '/docs',
async rewrites() {
return {
beforeFiles: [
{ source: '/', destination: '/introduction' },
{ source: '/what-is-owlstack', destination: '/introduction/what-is-owlstack' },
{ source: '/why-owlstack', destination: '/introduction/why-owlstack' },
{ source: '/how-it-works', destination: '/introduction/how-it-works' },
{ source: '/quick-start', destination: '/introduction/quick-start' },
{ source: '/comparisons', destination: '/introduction/comparisons' },
{ source: '/comparisons/:path+', destination: '/introduction/comparisons/:path+' },
],
};
},
async redirects() {
return [
{ source: '/introduction', destination: '/', permanent: true },
{ source: '/introduction/:path+', destination: '/:path+', permanent: true },
];
},
};
export default withMDX(config);