-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnext.config.mjs
More file actions
31 lines (28 loc) · 1.21 KB
/
next.config.mjs
File metadata and controls
31 lines (28 loc) · 1.21 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,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.openagentai.org',
},
],
},
async redirects() {
return [
{ source: '/docs', destination: '/docs/introduction', permanent: false },
{ source: '/docs/quick-start', destination: '/docs/install', permanent: true },
{ source: '/docs/what-is-openagent', destination: '/docs/introduction', permanent: true },
{ source: '/docs/add-tools-and-automation', destination: '/docs/tools-and-automation', permanent: true },
{ source: '/docs/admin/users', destination: '/docs/admin/enterprise-sso', permanent: true },
{ source: '/docs/admin/sites', destination: '/docs/admin/settings', permanent: true },
{ source: '/docs/admin/activities', destination: '/docs/admin/visitors', permanent: true },
{ source: '/docs/admin/usages', destination: '/docs/admin/ai-usage', permanent: true },
{ source: '/docs/connectors/servers', destination: '/docs/connectors/mcp-servers', permanent: true },
];
},
};
export default withMDX(config);