-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnext.config.mjs
More file actions
92 lines (89 loc) · 2.25 KB
/
next.config.mjs
File metadata and controls
92 lines (89 loc) · 2.25 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import createMDX from "@next/mdx";
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
allowedDevOrigins: ["127.0.0.1"],
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,
},
{
source: "/trust-center",
destination:
"https://app.eu.vanta.com/argos/trust/8z3w834xz9a4snga4obms",
permanent: false,
},
{
source: "/changelog/2025-08-20-ignore-changes",
destination: "/changelog/2025-07-20-ignore-changes",
permanent: false,
},
{
source: "/playwright",
destination: "/visual-testing",
permanent: true,
},
{
source: "/docs/about-us",
destination: "/about",
permanent: true,
},
{
source: "/docs/contact-us",
destination: "/contact",
permanent: true,
},
{
source: "/docs/github-actions",
destination: "/docs/github",
permanent: true,
},
{
source: "/mui-org/material-ui",
destination: "/customers/mui",
permanent: true,
},
{
source: "/callemall/material-ui",
destination: "/customers/mui",
permanent: true,
},
{
source: "/docs/why-argos",
destination: "/about",
permanent: true,
},
{
source: "/docs/faq",
destination: "/",
permanent: true,
},
];
},
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
},
];
},
transpilePackages: ["next-mdx-remote", "geist"],
};
const withMDX = createMDX();
export default withMDX(nextConfig);