mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-02-23 19:13:19 +01:00
25 lines
452 B
JavaScript
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;
|