-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
53 lines (50 loc) · 1.14 KB
/
next.config.mjs
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
51
52
53
import nextMDX from "@next/mdx";
import remarkGfm from "remark-gfm";
import remarkToc from "remark-toc";
import rehypeSlug from "rehype-slug";
import rehypePrettyCode from "rehype-pretty-code";
import { shikiOptions } from "./src/configs/options/shikiOptions.mjs";
const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm, remarkToc],
rehypePlugins: [rehypeSlug, [rehypePrettyCode, shikiOptions]],
},
});
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
sassOptions: {
silenceDeprecations: ["legacy-js-api"],
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "api.microlink.io",
port: "",
pathname: "/**/**",
},
{
protocol: "https",
hostname: "picsum.photos",
port: "",
pathname: "/**/**",
},
{
protocol: "https",
hostname: "api.dicebear.com",
port: "",
pathname: "/**/**",
},
{
protocol: "https",
hostname: "startup-template-sage.vercel.app",
port: "",
pathname: "/**/**",
},
],
},
};
export default withMDX(nextConfig);