-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext.config.mjs
More file actions
40 lines (37 loc) · 1.02 KB
/
next.config.mjs
File metadata and controls
40 lines (37 loc) · 1.02 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
32
33
34
35
36
37
38
39
40
import { createMDX } from 'fumadocs-mdx/next';
import path from 'path';
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
output: 'standalone',
typescript: {
ignoreBuildErrors: false,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'objectstack.ai',
},
],
},
experimental: {
turbo: {
resolveAlias: {
'fumadocs-ui/components/callout': 'fumadocs-ui/dist/components/callout.js',
},
},
},
webpack: (config, { isServer }) => {
// Resolve the fumadocs virtual collection import to the local .source directory
config.resolve = config.resolve || {};
config.resolve.alias = {
...(config.resolve.alias || {}),
'fumadocs-mdx:collections': path.resolve(__dirname, '.source'),
'fumadocs-ui/components/callout$': path.resolve(__dirname, '../../node_modules/fumadocs-ui/dist/components/callout.js'),
};
return config;
},
};
export default withMDX(config);