LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
FIX ([UN-3219]: show API Hub branding on verticals pages in incognito mode (#1786)
Jaseem Jas2e6c8dace311
diff --git a/docker/dockerfiles/frontend.Dockerfile b/docker/dockerfiles/frontend.Dockerfileindex 657223e15..f11f4be5a 100644--- a/docker/dockerfiles/frontend.Dockerfile+++ b/docker/dockerfiles/frontend.Dockerfile@@ -68,7 +68,7 @@ RUN mkdir -p /usr/share/nginx/html/config && \RUN sed -i 's|</head>| <script src="/config/runtime-config.js"></script>\n </head>|' /usr/share/nginx/html/index.html# Copy the environment script-COPY ${BUILD_CONTEXT_PATH}/generate-runtime-config.sh /docker-entrypoint.d/40-env.sh+COPY frontend/generate-runtime-config.sh /docker-entrypoint.d/40-env.shRUN chmod +x /docker-entrypoint.d/40-env.shEXPOSE 80diff --git a/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx b/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsxindex 019819d23..bf33ecd16 100644--- a/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx+++ b/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx@@ -174,8 +174,13 @@ function TopNavBar({ isSimpleLayout, topNavBarOptions }) {return unstractSubscriptionPlan?.remainingDays <= 0;}, [unstractSubscriptionPlan]);- const isUnstract = !(selectedProduct && selectedProduct !== "unstract");- const isAPIHub = selectedProduct && selectedProduct === "verticals";+ // Detect product from URL path as a fallback when selectedProduct is not set+ // (e.g., incognito/unauthenticated users visiting verticals pages)+ const isVerticalsRoute = location.pathname.startsWith("/verticals");+ const effectiveProduct =+ selectedProduct || (isVerticalsRoute ? "verticals" : null);+ const isUnstract = !(effectiveProduct && effectiveProduct !== "unstract");+ const isAPIHub = effectiveProduct === "verticals";const isStaff = sessionDetails?.isStaff || sessionDetails?.is_staff;const isOpenSource = orgName === "mock_org";