-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
Copy pathnext.config.mjs
41 lines (36 loc) · 898 Bytes
/
next.config.mjs
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
41
import MDX from '@next/mdx'
import PWA from 'next-pwa'
import remarkPlugins from './plugins/index.mjs'
const withMDX = MDX({
extension: /\.mdx?$/,
options: {
remarkPlugins,
providerImportSource: '@mdx-js/react',
},
experimental: {
mdxRs: true,
},
})
const withPWA = PWA({
dest: 'public',
disable: process.env.NODE_ENV === 'development',
})
/** @type {import('next').NextConfig} */
const nextConfig = withPWA(
withMDX({
reactStrictMode: true,
swcMinify: true,
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
images: { unoptimized: true },
env: {
DOCSEARCH_API_KEY: process.env.DOCSEARCH_API_KEY
}
})
)
export default nextConfig