mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
39 lines
812 B
JavaScript
39 lines
812 B
JavaScript
|
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 },
|
||
|
})
|
||
|
)
|
||
|
|
||
|
export default nextConfig
|