-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathnext.config.mjs
40 lines (37 loc) · 970 Bytes
/
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
import { createContentlayerPlugin } from "next-contentlayer2";
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: ["avatars.githubusercontent.com", "images.unsplash.com"],
},
redirects() {
return [
{
source: "/default/:path*",
destination: "/r/styles/default/:path*.json",
permanent: true,
},
{
source: "/new-york/:path*",
destination: "/r/styles/new-york/:path*.json",
permanent: true,
},
{
source: "/components",
destination: "/docs/components/breadcrumbs",
permanent: true,
},
{
source: "/docs/components",
destination: "/docs/components/breadcrumbs",
permanent: true,
},
];
},
};
const withContentlayer = createContentlayerPlugin({
// Additional Contentlayer config options
});
export default withContentlayer(nextConfig);