-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
125 lines (122 loc) · 3.21 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import withMarkdoc from '@markdoc/next.js'
import withSearch from './src/markdoc/search.mjs'
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
pageExtensions: ['js', 'jsx', 'md'],
experimental: {
scrollRestoration: true,
},
async redirects() {
return [
{
source: '/docs/advanced-engrid-guide-index',
destination: '/docs/v2/creating-an-engrid-theme',
permanent: true,
},
{
source: '/docs/before-you-begin',
destination: '/docs/v2/en-account-buildout',
permanent: true,
},
{
source: '/docs/installation',
destination: '/docs/v2/developing-with-engrid',
permanent: true,
},
{
source: '/docs/understanding-engrid-theme',
destination: '/docs/v2/creating-an-engrid-theme',
permanent: true,
},
{
source: '/docs/developing-engrid',
destination: '/docs/v2/developing-with-engrid',
permanent: true,
},
{
source: '/docs/example-pages',
destination: '/docs/v2/engrid-page-template-example',
permanent: true,
},
{
source: '/docs/contributing-to-engrid',
destination: '/docs/v2/contributing-to-engrid',
permanent: true,
},
{
source: '/docs/advanced-engrid-guide-index',
destination: '/docs/v2/developing-with-engrid',
permanent: true,
},
{
source: '/docs/upsell-lightbox',
destination: '/docs/v2/upsells',
permanent: true,
},
{
source: '/docs/embedd-engrid',
destination: '/docs/v2/embedding-engrid',
permanent: true,
},
{
source: '/docs/donation-reciepting',
destination: '/docs/v2/donation-receipting',
permanent: true,
},
{
source: '/docs/datalayer',
destination: '/docs/v2/gtm-datalayer',
permanent: true,
},
{
source: '/docs/storage',
destination: '/docs/v2/cookies',
permanent: true,
},
{
source: '/docs/engrid-pr',
destination: '/docs/v2/upstream-pull-requests',
permanent: true,
},
{
source: '/docs/custom-lightboxes',
destination: '/docs/v2/custom-lightboxes',
permanent: true,
},
{
source: '/docs/welcome-back',
destination: '/docs/v2/welcome-back',
permanent: true,
},
{
source: '/docs/ecard-to-target',
destination: '/docs/v2/ecard-to-target',
permanent: true,
},
{
source: '/docs/embedded-ecard',
destination: '/docs/v2/embedded-ecard',
permanent: true,
},
{
source: '/docs/feature-branch',
destination: '/docs/v2/developing-with-engrid',
permanent: true,
},
{
source: '/docs/native-custom-ask-string',
destination: '/docs/v2/gift-amount',
permanent: true,
},
{
source: '/docs/cheat-sheet',
destination: '/docs/v2/conditional-content-helper-classes',
permanent: true,
},
]
},
}
export default withSearch(
withMarkdoc({ schemaPath: './src/markdoc' })(nextConfig)
)