From 6617f81640345a8bd849aa66da8b73247b7623ca Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 24 Oct 2024 15:02:55 +0300 Subject: [PATCH] docs: add ui rewrite (#9762) --- www/apps/book/next.config.mjs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/www/apps/book/next.config.mjs b/www/apps/book/next.config.mjs index b4f752655cf59..3b2af6e1e5827 100644 --- a/www/apps/book/next.config.mjs +++ b/www/apps/book/next.config.mjs @@ -112,6 +112,20 @@ const nextConfig = { }/api/:path*`, basePath: false, }, + { + source: "/ui", + destination: `${ + process.env.NEXT_PUBLIC_UI_URL || "https://localhost:3001" + }/ui`, + basePath: false, + }, + { + source: "/ui/:path*", + destination: `${ + process.env.NEXT_PUBLIC_UI_URL || "https://localhost:3001" + }/ui/:path*`, + basePath: false, + }, { source: "/v1", destination: `${