docs: add ui rewrite (#9762)

This commit is contained in:
Shahed Nasser
2024-10-24 15:02:55 +03:00
committed by GitHub
parent 88f2d17a24
commit 6617f81640

View File

@@ -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: `${