-
Notifications
You must be signed in to change notification settings - Fork 321
/
next.config.js
35 lines (31 loc) · 948 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
import nextMDX from "@next/mdx";
import { recmaPlugins } from "./src/mdx/recma.js";
import { rehypePlugins } from "./src/mdx/rehype.js";
import { remarkPlugins } from "./src/mdx/remark.js";
import withSearch from "./src/mdx/search.js";
const withMDX = nextMDX({
options: {
remarkPlugins,
rehypePlugins,
recmaPlugins,
},
});
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
images: {
remotePatterns: [
{
hostname: "utfs.io",
pathname: "/a/s40vlb3kca/*",
},
],
},
rewrites: async () => [
{ source: "/auth-security", destination: "/concepts/auth-security" },
{ source: "/errors", destination: "/concepts/error-handling" },
{ source: "/regions-and-acl", destination: "/concepts/regions-acl" },
{ source: "/theming", destination: "/concepts/theming" },
],
};
export default withSearch(withMDX(nextConfig));