forked from iotaledger-archive/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
31 lines (31 loc) · 809 Bytes
/
next.config.js
File metadata and controls
31 lines (31 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
webpack: (config, { defaultLoaders }) => {
config.module.rules.push({
test: /\.mdx?$/,
use: [
defaultLoaders.babel,
{
loader: '@mdx-js/loader'
}
]
})
return config
}
// exportPathMap: async function() {
// const paths = await glob("pages/**")
// const pages = paths.map(path => {
// path = path.replace(/^pages/, "")
// path = path.replace("index.js", "")
// path = path.replace(".js", "")
// if (path === "/") return path
// path = path.replace(/\/$/, "")
// return path
// })
// const pageMap = pages.reduce((map, page) => {
// map[page] = { page }
// return map
// }, {})
// return pageMap
// }
}