remove mdx dependencies

This commit is contained in:
2023-10-05 11:08:09 -05:00
parent f121391288
commit 29c0f49224
7 changed files with 8 additions and 173 deletions

View File

@@ -1,21 +1,6 @@
// more about configuring mdx
// https://nextjs.org/docs/pages/building-your-application/configuring/mdx
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
options: {
// If you use remark-gfm, you'll need to use next.config.mjs
// as the package is ESM only
// https://github.com/remarkjs/remark-gfm#install
remarkPlugins: [require("remark-prism")],
rehypePlugins: [],
providerImportSource: "@mdx-js/react",
},
});
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
pageExtensions: ['js', 'jsx', 'ts', 'tsx'],
reactStrictMode: true,
experimental: {
// mdxRs: true,
@@ -23,4 +8,4 @@ const nextConfig = {
}
}
module.exports = withMDX(nextConfig);
module.exports = nextConfig;