Skip to content

Commit 4abfcfa

Browse files
author
gitgitWi
committed
Feat: MDX 설치, 테스트용 hello page 추가
1 parent e4f3fd8 commit 4abfcfa

File tree

5 files changed

+4067
-9578
lines changed

5 files changed

+4067
-9578
lines changed

next.config.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
// @ts-check
12
/* eslint-disable no-undef */
2-
module.exports = {
3+
// eslint-disable-next-line @typescript-eslint/no-var-requires
4+
const withMdx = require("@next/mdx")({
5+
extension: /\.mdx$/,
6+
});
7+
8+
module.exports = withMdx({
39
reactStrictMode: true,
410
eslint: {
511
ignoreDuringBuilds: true,
612
},
713
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
814
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH,
9-
};
15+
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
16+
});

0 commit comments

Comments
 (0)