Skip to content

Commit

Permalink
Support mdx-components file in src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Mar 4, 2023
1 parent ff2159d commit da58bae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next-mdx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports =
return Object.assign({}, nextConfig, {
webpack(config, options) {
config.resolve.alias['next-mdx-import-source-file'] = [
'private-next-root-dir/src/mdx-components',
'private-next-root-dir/mdx-components',
'@mdx-js/react',
]
Expand Down

0 comments on commit da58bae

Please sign in to comment.