-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
39 lines (36 loc) · 936 Bytes
/
next.config.mjs
File metadata and controls
39 lines (36 loc) · 936 Bytes
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
32
33
34
35
36
37
38
39
import { createMDX } from 'fumadocs-mdx/next';
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
output: 'standalone',
typescript: {
ignoreBuildErrors: false,
},
turbopack: {
resolveAlias: {
// MDX content lives in ../../content/docs/ (outside the app directory).
// Turbopack resolves modules starting from the file's directory, so it
// can't find packages installed under this app's node_modules/.
// Alias lucide-react so external MDX files can import it.
'lucide-react': './node_modules/lucide-react',
},
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'objectstack.ai',
},
],
},
async rewrites() {
return [
{
source: '/docs/:path*.mdx',
destination: '/llms.mdx/docs/:path*',
},
];
},
};
export default withMDX(config);