Add support for markdown

This commit is contained in:
Kamran Ahmed
2021-08-20 15:55:39 +02:00
parent a85497d7e7
commit c37297f822
3 changed files with 5240 additions and 2 deletions

View File

@ -1,4 +1,24 @@
module.exports = {
const path = require('path');
const rehypePrism = require('@mapbox/rehype-prism');
const withMDX = require('@next/mdx')({
extension: /\.(md|mdx)?$/,
options: {
rehypePlugins: [rehypePrism]
}
});
let nextConfig = {
reactStrictMode: true,
poweredByHeader: false,
}
webpack(config, options) {
config.resolve.modules.push(path.resolve('./'));
return config;
}
};
nextConfig = withMDX(nextConfig);
module.exports = nextConfig;