Skip to content

Commit 00053a9

Browse files
authored
Merge pull request #6 from gitgitWi/nextjs/v1
Feat: MDX 설치, 테스트용 hello page 추가
2 parents afbbb20 + 4a353d2 commit 00053a9

File tree

6 files changed

+4071
-9582
lines changed

6 files changed

+4071
-9582
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
uses: actions/setup-node@v2
2323
with:
2424
node-version: ${{ matrix.node-version }}
25-
cache: "npm"
25+
cache: "yarn"
2626

2727
- name: Install Packages
28-
run: npm ci
28+
run: yarn install --frozen-lockfile
2929

3030
- name: Build 🔧
31-
run: npm run build
32-
- run: npm run export
31+
run: yarn build
32+
- run: yarn run export
3333
- run: touch ./out/.nojekyll
3434

3535
- name: Deploy

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)