-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnext.config.js
39 lines (37 loc) · 950 Bytes
/
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
redirects: async () => {
return [
{
source: "/docs",
destination: "/docs/getting-started",
permanent: false,
},
{
source: "/:organization/:repository/builds/:path*",
destination:
"https://app.argos-ci.com/:organization/:repository/builds/:path*",
permanent: false,
},
{
source: "/discord",
destination: "https://discord.gg/WjzGrQGS4A",
permanent: false,
},
];
},
rewrites: async () => {
return [
{
source: "/docs/:path*",
destination: "https://argos-docs.vercel.app/:path*", // The :path parameter is used here so will not be automatically passed in the query
},
];
},
experimental: {
mdxRs: true,
},
};
const withMDX = require("@next/mdx")();
module.exports = withMDX(nextConfig);