-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnext.config.ts
More file actions
50 lines (47 loc) · 1.11 KB
/
next.config.ts
File metadata and controls
50 lines (47 loc) · 1.11 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
import "./src/env";
import path from "node:path";
import createMDX from "@next/mdx";
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
reactCompiler: true,
typescript: {
ignoreBuildErrors: true,
},
outputFileTracingIncludes: {
"/blog/[slug]": ["./src/content/**/*"],
"/blog/[slug]/opengraph-image": ["./src/content/**/*"],
"/blog/[slug]/twitter-image": ["./src/content/**/*"],
},
};
const withMDX = createMDX({
options: {
remarkPlugins: [
path.join(process.cwd(), "src/lib/remark-static-image-imports.mjs"),
path.join(process.cwd(), "src/lib/remark-mermaid.mjs"),
"remark-gfm",
],
rehypePlugins: [
"rehype-slug",
[
"rehype-autolink-headings",
{
behavior: "wrap",
properties: {
className: ["heading-anchor"],
},
},
],
[
"rehype-pretty-code",
{
theme: {
light: "github-light",
dark: "github-dark",
},
keepBackground: false,
},
],
],
},
});
export default withMDX(nextConfig);