diff --git a/frontend/build.sh b/frontend/build.sh index 726b8d0..7f1f5af 100755 --- a/frontend/build.sh +++ b/frontend/build.sh @@ -20,7 +20,7 @@ echo "1. Copy build files to your web server at any path:" echo " Example: scp -r build/* user@server:/var/www/html/your-app-path/" echo "" echo "2. Update config.json on your server:" -echo " - Set 'basePath' to match your deployment path (e.g., '/video_query', '/video-query')" +echo " - Set 'basePath' to match your deployment path (e.g., '/video_query')" echo " - Set 'domain' to your server's domain" echo " - Update MSAL and API endpoints as needed" echo "" diff --git a/frontend/public/config.js b/frontend/public/config.js index 7e7494f..2558e3a 100644 --- a/frontend/public/config.js +++ b/frontend/public/config.js @@ -1,12 +1,12 @@ window.__APP_CONFIG__ = { "_comment": "PRODUCTION CONFIG - Dynamic base path configuration - set basePath to override auto-detection", - "basePath": "/video-query", + "basePath": "/video_query", "domain": "https://brandtechsandbox.oliver.solutions", "msal": { "clientId": "9079054c-9620-4757-a256-23413042f1ef", "authority": "https://login.microsoftonline.com/e519c2e6-bc6d-4fdf-8d9c-923c2f002385", - "redirectUri": "https://brandtechsandbox.oliver.solutions/video-query/", - "postLogoutRedirectUri": "https://brandtechsandbox.oliver.solutions/video-query/", + "redirectUri": "https://brandtechsandbox.oliver.solutions/video_query/", + "postLogoutRedirectUri": "https://brandtechsandbox.oliver.solutions/video_query/", "tenantId": "e519c2e6-bc6d-4fdf-8d9c-923c2f002385" }, "api": { diff --git a/frontend/src/utils/pathUtils.js b/frontend/src/utils/pathUtils.js index b6febb8..c7761e1 100644 --- a/frontend/src/utils/pathUtils.js +++ b/frontend/src/utils/pathUtils.js @@ -42,7 +42,7 @@ const detectBasePath = () => { // Common patterns for where React apps are deployed const commonAppPaths = [ - 'video_query', 'video-query', 'videoquery', + 'video_query', 'videoquery', 'app', 'frontend', 'client', 'ui', 'web' ];