From 730ca3b2034bed47b5a3655d2f126aa111cc2ecd Mon Sep 17 00:00:00 2001 From: Akshay Kadam Date: Mon, 12 Oct 2020 17:01:15 +0530 Subject: [PATCH] MDX passes exports to Layout directly --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 2c4fc74..e23492e 100644 --- a/next.config.js +++ b/next.config.js @@ -86,7 +86,7 @@ module.exports = withBundleAnalyzer({ 'import Post from "@/components/Post"', 'export { getStaticProps } from "@/getStaticProps"', src, - 'export default (props) => ', + 'export default Post', ].join('\n') if (content.includes('')) {