2022-11-10 05:54:16 +03:00
|
|
|
import MDX from '@next/mdx'
|
2022-12-13 06:03:41 +03:00
|
|
|
import PWA from 'next-pwa'
|
2022-11-10 05:54:16 +03:00
|
|
|
|
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-12-13 06:03:41 +03:00
|
|
|
const withPWA = PWA({
|
|
|
|
dest: 'public',
|
|
|
|
disable: process.env.NODE_ENV === 'development',
|
2022-11-10 03:01:24 +03:00
|
|
|
})
|
2022-11-10 02:18:01 +03:00
|
|
|
|
2022-12-13 06:03:41 +03:00
|
|
|
/** @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,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
)
|
|
|
|
|
2022-11-10 05:54:16 +03:00
|
|
|
export default nextConfig
|