forked from dvargas92495/roamjs-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
27 lines (26 loc) · 890 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
const withMdx = require("next-mdx-enhanced");
const withOptimizedImages = require("next-optimized-images"); // https://github.com/vercel/next.js/issues/18356
const withReactSvg = require("next-react-svg");
const path = require("path");
const remarkAutoLinkHeadings = require("remark-autolink-headings");
const remarkSlug = require("remark-slug");
const remarkUnwrapImages = require("remark-unwrap-images");
const remarkCodeTitles = require("remark-code-titles");
module.exports = withMdx({
layoutPath: "components",
remarkPlugins: [
remarkAutoLinkHeadings,
remarkSlug,
remarkUnwrapImages,
remarkCodeTitles,
],
})(
withOptimizedImages(
withReactSvg({
include: path.resolve(__dirname, "components/svg"),
pageExtensions: ["tsx", "mdx"],
handleImages: ["jpeg", "png", "webp", "gif"],
basePath: process.env.APP_BASE_PATH || "",
})
)
);