Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit 730ca3b

Browse files
committed
MDX passes exports to Layout directly
1 parent 1d5bb26 commit 730ca3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = withBundleAnalyzer({
8686
'import Post from "@/components/Post"',
8787
'export { getStaticProps } from "@/getStaticProps"',
8888
src,
89-
'export default (props) => <Post meta={meta} {...props} />',
89+
'export default Post',
9090
].join('\n')
9191

9292
if (content.includes('<!--more-->')) {

0 commit comments

Comments
 (0)