-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.js
46 lines (45 loc) · 1.11 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
41
42
43
44
45
46
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
staticImage: true,
latex: true,
flexsearch: {
codeblocks: true,
},
defaultShowCopyCode: true,
})
module.exports = withNextra({
i18n: {
locales: ['en', 'fr'],
defaultLocale: 'en'
},
async redirects() {
return [
{
source: '/host/drupal-hosting-for-evaluation-and-production',
destination: '/deploy/drupal-hosting-for-evaluation-and-production',
permanent: true,
},
{
source: '/build/common-site-building-tasks',
destination: '/build/site-building/configuration',
permanent: true,
},
{
source: '/build/content-model',
destination: '/build/site-building/content-model',
permanent: true,
},
{
source: '/build/normalize-naming',
destination: '/build/site-building/normalize-naming',
permanent: true,
},
{
source: '/build/security-updates',
destination: '/build/site-building/security-updates',
permanent: true,
},
]
},
})