1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-02-23 19:13:19 +01:00
developer-roadmap/next.config.js
2021-08-20 15:55:39 +02:00

25 lines
452 B
JavaScript

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;