-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
40 lines (38 loc) · 1.05 KB
/
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
36
37
38
39
40
const { withContentlayer } = require("next-contentlayer");
/** @type {import('next').NextConfig} */
const nextConfig = {
// experimental: {
// typedRoutes: true,
// },
reactStrictMode: true,
async redirects() {
return [
{
source: "/notes/css-a-set-of-boundaries-not-hard-rules",
destination: "/notes/css-boundaries",
permanent: true,
},
{
source: "/diagrams/begin-with-low-level-components",
destination: "/diagrams/begin-low",
permanent: true,
},
{
source: "/diagrams/co-locate-your-providers-and-stores",
destination: "/diagrams/colocate-providers",
permanent: true,
},
{
source: "/diagrams/create-components-through-composition",
destination: "/diagrams/composition",
permanent: true,
},
{
source: "/diagrams/url-as-a-way-to-compose-your-interface",
destination: "/diagrams/url-compose",
permanent: true,
},
];
},
};
module.exports = withContentlayer(nextConfig);