26 lines
589 B
TypeScript
26 lines
589 B
TypeScript
import createMDX from "@next/mdx";
|
|
import { NextConfig } from "next";
|
|
import remarkGfm from "remark-gfm";
|
|
import rehypePrismPlus from "rehype-prism-plus";
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactStrictMode: true,
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
|
|
};
|
|
|
|
const withMDX = createMDX({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
remarkPlugins: [remarkGfm],
|
|
rehypePlugins: [rehypePrismPlus],
|
|
},
|
|
});
|
|
|
|
export default withMDX(nextConfig);
|