forked from drizzle-team/drizzle-orm-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
62 lines (59 loc) · 1.57 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
const withNextra = require("nextra")({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
});
// http://localhost:3000/docs/installation-and-db-connection/postgresql/postgresjs
// поискать по installation-and-db-connection, сделать ссылки на новое
const legacyRedirects = {};
module.exports = withNextra({
images: {
unoptimized: true,
},
webpack: (config) => {
config.module.rules.push({
test: /\.d\.ts$/,
use: "raw-loader",
});
return config;
},
redirects: () => {
return[
{ source: '/docs', destination: '/docs/overview', statusCode: 301 },
{
source: '/docs/quick-start',
destination: '/docs/overview',
statusCode: 301
},
{
source: '/docs/crud',
destination: '/docs/select',
statusCode: 301
},
{
source: '/docs/performance',
destination: '/docs/perf-queries',
statusCode: 301
},
{
source: '/docs/installation-and-db-connection/postgresql/:path*',
destination: '/docs/quick-postgresql/:path*',
statusCode: 301
},
{
source: '/docs/installation-and-db-connection/mysql/:path*',
destination: '/docs/quick-mysql/:path*',
statusCode: 301
},
{
source: '/docs/installation-and-db-connection/sqlite/:path*',
destination: '/docs/quick-sqlite/:path*',
statusCode: 301
},
{
source: '/kit-docs',
destination: '/kit-docs/overview',
statusCode: 301
}
]
},
});