-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
75 lines (73 loc) · 1.87 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
/** @type {import('next').NextConfig} */
import nextra from "nextra";
const nextConfig = {
reactStrictMode: true,
transpilePackages: ["ui", "common"],
async redirects() {
return [
{
source: "/webhooks",
destination: "/guides/webhooks",
permanent: true,
},
{
source: "/guides/webhook-response",
destination: "/guides/webhooks/webhook-response",
permanent: true,
},
{
source: "/concepts/concurrency",
destination: "/concepts/deployments/concurrency",
permanent: true,
},
{
source: "/concepts/schedules",
destination: "/concepts/deployments/schedules",
permanent: true,
},
{
source: "/concepts/public-builds",
destination: "/concepts/builds/public-builds",
permanent: true,
},
{
source: "/api-proxy",
destination: "/ottofms-features/api-proxy",
permanent: true,
},
{
source: "/ottofms-console/file-manager",
destination: "/ottofms-console/file-browser",
permanent: true,
},
{
source: "/concepts/deployments/post-deployment-scripts",
destination: "/concepts/deployments/deployment-scripts",
permanent: true,
},
{
source: "/guides/notifications",
destination:
"/ottodeploy-features/deployments/advanced-options#slack-notifications",
permanent: true,
},
];
},
rewrites: async () => {
return [
{
source: "/apidoc",
destination: "/apidoc/index.html",
},
{
source: "/downloads/:path*",
destination: "https://console.ottomatic.cloud/downloads/:path*",
},
];
},
};
const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
});
export default withNextra(nextConfig);