forked from vertx-web-site/vertx-web-site.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
37 lines (31 loc) · 876 Bytes
/
next.config.js
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
32
33
34
35
36
37
const highlight = require("rehype-highlight");
const hyphenate = require("./plugins/remark-hyphenate");
const optimizedImages = require("next-optimized-images");
const sass = require("@zeit/next-sass");
const smartypants = require("@silvenon/remark-smartypants");
const withPlugins = require("next-compose-plugins");
const mdx = require("@next/mdx")({
options: {
remarkPlugins: [hyphenate, smartypants],
rehypePlugins: [highlight]
}
});
const config = {
// also render markdown pages
pageExtensions: ["js", "jsx", "md", "mdx"],
// create a folder for each page
exportTrailingSlash: true,
// list pages to export
exportPathMap() {
return {
"/": { page: "/" },
"/docs": { page: "/docs" },
"/get-started": { page: "/get-started" }
};
}
};
module.exports = withPlugins([
[optimizedImages],
[sass],
[mdx]
], config);