LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
UN-4482 [FEAT] Pass VITE_FLOW_URL to the browser as flowUrl (#2358)
Athul2b3627dcd52a
diff --git a/frontend/generate-runtime-config.sh b/frontend/generate-runtime-config.shindex 51dba1426..9745efb95 100755--- a/frontend/generate-runtime-config.sh+++ b/frontend/generate-runtime-config.sh@@ -12,6 +12,7 @@ js_escape() {}APP_VERSION=$(js_escape "${UNSTRACT_APPS_VERSION:-}")+FLOW_URL=$(js_escape "${VITE_FLOW_URL:-}")cat > /usr/share/nginx/html/config/runtime-config.js << EOF// This file is auto-generated at runtime. Do not modify manually.@@ -19,7 +20,8 @@ window.RUNTIME_CONFIG = {faviconPath: "${VITE_FAVICON_PATH:-${REACT_APP_FAVICON_PATH}}",logoUrl: "${VITE_CUSTOM_LOGO_URL:-${REACT_APP_CUSTOM_LOGO_URL}}",enablePosthog: "${VITE_ENABLE_POSTHOG:-${REACT_APP_ENABLE_POSTHOG}}",- version: "${APP_VERSION}"+ version: "${APP_VERSION}",+ flowUrl: "${FLOW_URL}"};EOFdiff --git a/frontend/src/config.js b/frontend/src/config.jsindex 1f1abc3bf..99e8e7ec7 100644--- a/frontend/src/config.js+++ b/frontend/src/config.js@@ -18,6 +18,8 @@ const config = {"/favicon.ico",logoUrl: runtimeConfig.logoUrl || import.meta.env.VITE_CUSTOM_LOGO_URL,version: runtimeConfig.version || import.meta.env.VITE_VERSION,+ // URL of the Unstract Flow app, when one is deployed alongside.+ flowUrl: runtimeConfig.flowUrl || import.meta.env.VITE_FLOW_URL,// Add more values as OR case, if needed for fallback.};