docs: prepare projects configurations for user guide (#11610)
* docs: prepare projects configurations for user guide * fix build error
This commit is contained in:
1 parent
9e2af4801d
commit
b45c1e1580
5 files changed
+59
-17
No files matched your search
@@ -28,6 +28,9 @@ const withMDX = mdx({
|
||||
projectPath: path.resolve("..", "ui"),
|
||||
contentPath: "src/content/docs",
|
||||
},
|
||||
"user-guide": {
|
||||
projectPath: path.resolve("..", "user-guide"),
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -152,17 +155,16 @@ const nextConfig = {
|
||||
}/v1/:path*`,
|
||||
basePath: false,
|
||||
},
|
||||
// TODO comment out once we have the user guide published
|
||||
// {
|
||||
// source: "/user-guide",
|
||||
// destination: `${process.env.NEXT_PUBLIC_USER_GUIDE_URL}/user-guide`,
|
||||
// basePath: false,
|
||||
// },
|
||||
// {
|
||||
// source: "/user-guide/:path*",
|
||||
// destination: `${process.env.NEXT_PUBLIC_USER_GUIDE_URL}/user-guide/:path*`,
|
||||
// basePath: false,
|
||||
// },
|
||||
{
|
||||
source: "/user-guide",
|
||||
destination: `${process.env.NEXT_PUBLIC_USER_GUIDE_URL || "https://localhost:3001"}/user-guide`,
|
||||
basePath: false,
|
||||
},
|
||||
{
|
||||
source: "/user-guide/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_USER_GUIDE_URL || "https://localhost:3001"}/user-guide/:path*`,
|
||||
basePath: false,
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user