-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
64 lines (61 loc) · 2.36 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
images: {
unoptimized: true,
},
transpilePackages: ['next-mdx-remote'],
redirects: async () => {
const rewrites = [
['/projects', '/'],
['/repository/application_manual', '/application-manual'],
['/repository/chistopol', '/chistopol'],
['/repository/chistopol2', '/chistopol2'],
['/repository/delta', '/delta'],
['/repository/edu_ugra', '/ugra-edu'],
['/repository/garagescreen', '/garagescreen'],
['/repository/gor_projects_spb', '/gorprojects-spb'],
['/repository/heterotopia', '/heterotopia'],
['/repository/hovrinka', '/hovrinka'],
['/repository/kemb', '/kemb'],
['/repository/krvostok', '/krvostok'],
['/repository/latlng', '/latlng'],
['/repository/model4', '/model4'],
['/repository/oymyakon', '/oymyakon'],
['/repository/park_scnd', '/scnd-park'],
['/repository/boulevard_scnd', '/scnd-boulevard'],
['/repository/gb_scnd', '/scnd-gb'],
['/repository/d_scnd', '/scnd-d'],
['/repository/dc_scnd', '/scnd-dc'],
['/repository/samarapark', '/samarapark'],
['/repository/shelter', '/shelter'],
['/repository/swarm', '/swarm'],
['/repository/trollgardens', '/trollgardens'],
['/repository/uray_ppi', '/uray-ppi'],
['/repository/volokolamsk', '/volokolamsk'],
['/repository/yoshkola', '/yoshkola'],
['/application_manual', '/application-manual'],
['/edu_ugra', '/ugra-edu'],
['/gor_projects_spb', '/gorprojects-spb'],
['/park_scnd', '/scnd-park'],
['/boulevard_scnd', '/scnd-boulevard'],
['/gb_scnd', '/scnd-gb'],
['/d_scnd', '/scnd-d'],
['/dc_scnd', '/scnd-dc'],
['/uray_ppi', '/uray-ppi'],
['/model_4', '/model4'],
['/latlng', '/mesto'],
]
return rewrites.map(([source, destination]) => ({
source,
destination,
permanent: true,
}))
},
i18n: {
localeDetection: false,
locales: ['ru', 'en'],
defaultLocale: 'ru',
},
}
export default nextConfig