-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.ts
30 lines (26 loc) · 864 Bytes
/
next.config.ts
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
import { fileURLToPath } from "node:url";
import createMDX from "@next/mdx";
import createJiti from "jiti";
import type { NextConfig } from "next";
import remarkFrontmatter from "remark-frontmatter";
import remarkGfm from "remark-gfm";
import remarkMdxFrontmatter from "remark-mdx-frontmatter";
const jiti = createJiti(fileURLToPath(import.meta.url));
// Load and verify environment variables
jiti("./src/lib/shared/infrastructure/env");
const nextConfig: NextConfig = {
/* config options here */
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
eslint: {
ignoreDuringBuilds: true,
},
};
const withMDX = createMDX({
// Add markdown plugins here, as desired
options: {
remarkPlugins: [remarkGfm, remarkFrontmatter, remarkMdxFrontmatter],
rehypePlugins: [],
},
});
// Merge MDX config with Next.js config
export default withMDX(nextConfig);