-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
31 lines (26 loc) · 665 Bytes
/
next.config.mjs
File metadata and controls
31 lines (26 loc) · 665 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
import createBundleAnalyzer from '@next/bundle-analyzer';
import { createMDX } from 'fumadocs-mdx/next';
const withAnalyzer = createBundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
});
/** @type {import('next').NextConfig} */
const config = {
output: 'export',
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
serverExternalPackages: ['ts-morph', 'typescript'],
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
port: '',
},
],
},
};
const withMDX = createMDX();
export default withAnalyzer(withMDX(config));