2022-11-10 05:54:16 +03:00
|
|
|
import MDX from '@next/mdx'
|
|
|
|
|
2022-11-13 18:31:26 +03:00
|
|
|
import remarkPlugins from './plugins/index.mjs'
|
|
|
|
|
2022-11-10 05:54:16 +03:00
|
|
|
const withMDX = MDX({
|
2022-11-10 03:01:24 +03:00
|
|
|
extension: /\.mdx?$/,
|
2022-11-10 04:40:32 +03:00
|
|
|
options: {
|
2022-11-13 18:31:26 +03:00
|
|
|
remarkPlugins,
|
2022-11-10 04:40:32 +03:00
|
|
|
providerImportSource: '@mdx-js/react',
|
|
|
|
},
|
2022-11-10 04:46:35 +03:00
|
|
|
experimental: {
|
|
|
|
mdxRs: true,
|
|
|
|
},
|
2022-11-10 03:01:24 +03:00
|
|
|
})
|
2022-11-10 02:22:01 +03:00
|
|
|
|
2022-11-10 02:18:01 +03:00
|
|
|
/** @type {import('next').NextConfig} */
|
2022-11-10 02:22:01 +03:00
|
|
|
const nextConfig = withMDX({
|
2022-11-10 03:01:24 +03:00
|
|
|
reactStrictMode: true,
|
|
|
|
swcMinify: true,
|
|
|
|
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
|
|
|
|
})
|
2022-11-10 02:18:01 +03:00
|
|
|
|
2022-11-10 05:54:16 +03:00
|
|
|
export default nextConfig
|