Files
DefectingCat.github.io/next.config.js
DefectingCat 3f27989654 Add MDX
2022-01-14 10:29:47 +08:00

21 lines
516 B
JavaScript

/** @type {import('next').NextConfig} */
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
options: {
remarkPlugins: [],
rehypePlugins: [],
},
});
module.exports = withMDX({
reactStrictMode: true,
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
swcMinify: true,
experimental: {
// Native Node.js APIs are not supported in the Edge Runtime with `concurrentFeatures` enabled. Found `fs` imported.
// concurrentFeatures: true,
// serverComponents: true,
},
});