feat(api-reference): Add rewrite to UI docs (#4791)
* add rewrite to UI docs * add base rewrite --------- Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
1 parent
5c2f15cfc4
commit
3ad2136888
2 files changed
+9
No files matched your search
@@ -8,6 +8,14 @@ const nextConfig = {
|
||||
async rewrites() {
|
||||
return {
|
||||
fallback: [
|
||||
{
|
||||
source: "/ui",
|
||||
destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui`,
|
||||
},
|
||||
{
|
||||
source: "/ui/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui/:path*`,
|
||||
},
|
||||
{
|
||||
source: "/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,
|
||||
|
||||
Reference in new issue
Block a user