parent
a85497d7e7
commit
c37297f822
3 changed files with 5240 additions and 2 deletions
@ -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, |
reactStrictMode: true, |
||||||
poweredByHeader: false, |
poweredByHeader: false, |
||||||
} |
|
||||||
|
webpack(config, options) { |
||||||
|
config.resolve.modules.push(path.resolve('./')); |
||||||
|
|
||||||
|
return config; |
||||||
|
} |
||||||
|
}; |
||||||
|
|
||||||
|
nextConfig = withMDX(nextConfig); |
||||||
|
|
||||||
|
module.exports = nextConfig; |
||||||
|
Loading…
Reference in new issue