spaCy/website/next.config.mjs

38 lines
773 B
JavaScript
Raw Normal View History

import MDX from '@next/mdx'
2022-12-13 06:03:41 +03:00
import PWA from 'next-pwa'
2022-11-13 18:31:26 +03:00
import remarkPlugins from './plugins/index.mjs'
const withMDX = MDX({
2022-11-10 03:01:24 +03:00
extension: /\.mdx?$/,
options: {
2022-11-13 18:31:26 +03:00
remarkPlugins,
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,
},
})
)
export default nextConfig