Files
DefectingCat.github.io/next.config.js
DefectingCat d1b7c5c7ee Upgrade next 12
* Upgrade react 18.0.0-rc.0
* Remove ts-node
* Fix type error
* Fix type errorRemove useless log
2021-12-31 11:09:38 +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,
},
});