-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.mjs
99 lines (96 loc) · 2.39 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import createMDX from '@next/mdx'
import remarkFrontmatter from 'remark-frontmatter'
import remarkMdxFrontmatter from 'remark-mdx-frontmatter'
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
async redirects() {
return [
{
source: '/howitworks',
destination: '/about',
permanent: true, // 308 status code
},
{
source: '/cg-lite',
destination: '/porosity/low-porosity',
permanent: true, // 308 status code
},
{
source: '/groups/detergents',
destination: '/groups/surfactants',
permanent: true, // 308 status code
},
{
source: '/cleansers',
destination: '/groups/surfactants',
permanent: true, // 308 status code
},
{
source: '/high-porosity',
destination: '/porosity/high-porosity',
permanent: true,
},
{
source: '/normal-porosity',
destination: '/porosity/normal-porosity',
permanent: true,
},
{
source: '/curly-girl-ingredient-list',
destination: '/ingredients-cheat-sheet',
permanent: true,
},
{
source: '/dye',
destination: '/blog/curl-friendly-hair-dye',
permanent: true,
},
{
source: '/harder-water',
destination: '/blog/curly-hair-hard-water',
permanent: true,
},
{
source: '/shampoo-bars-are-not-cg',
destination: '/categories/soaps',
permanent: true,
},
{
source: '/blog/is-soap-good-for-curls',
destination: '/categories/soaps',
permanent: true,
},
{
source: '/shea',
destination: '/blog/is-shea-moisture-curl-friendly',
permanent: true,
},
{
source: '/porosity',
destination: '/porosity-quiz',
permanent: true,
},
{
source: '/groups',
destination: '/categories',
permanent: true,
},
{
source: '/categories/humectants',
destination: '/groups/humectants',
permanent: true,
},
];
},
}
const withMDX = createMDX({
options: {
remarkPlugins: [
remarkFrontmatter,
[remarkMdxFrontmatter, { name: 'frontmatter', exported: true }]
],
rehypePlugins: [],
},
})
export default withMDX(nextConfig)