-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
20 lines (18 loc) ยท 840 Bytes
/
next.config.mjs
File metadata and controls
20 lines (18 loc) ยท 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import nextra from 'nextra'
const withNextra = nextra({
defaultShowCopyCode: true,
// readingTime: true
})
// You can include other Next.js configuration options here, in addition to Nextra settings:
export default withNextra({
// ์ ์ ์ฌ์ดํธ ์์ฑ (GitHub Pages ๋ฐฐํฌ์ฉ)
// ๊ฐ๋ฐ ๋ชจ๋์์๋ output: 'export'๋ฅผ ๋นํ์ฑํํ์ฌ ๋์ ๋ผ์ฐํ
ํ์ฉ
...(process.env.NODE_ENV === 'production' && { output: 'export' }),
trailingSlash: true, // ๋ชจ๋ ๊ฒฝ๋ก์ trailing slash ์ถ๊ฐ (index.html ์์ฑ)
// basePath๋ ๋ฃจํธ ๊ฒฝ๋ก์ธ ๊ฒฝ์ฐ ์ ๊ฑฐ (๋๋ ๋น ๋ฌธ์์ด)
images: {
unoptimized: true, // ์ ์ export ์ ์ด๋ฏธ์ง ์ต์ ํ ๋นํ์ฑํ
},
// rewrites๋ ์ ์ export์์ ์๋ํ์ง ์์ผ๋ฏ๋ก ์ ๊ฑฐ
// ๋ ์ง ๊ธฐ๋ฐ URL์ ๋น๋ ์ ์ ์ ํ์ผ๋ก ์์ฑ๋จ
})