Skip to content

Conversation

@Maphikza
Copy link
Member

Update Base URL to Use Port 10002 in Demo Mode

Summary

This PR updates the application configuration to use "http://localhost:10002/" as the base URL when demo mode is enabled, regardless of the environment (development or production).

Changes Made

  • Modified the baseURL configuration in src/config/config.ts to first check if demo mode is enabled
  • Added conditional logic to prioritize the demo mode port (10002) over other environment-specific configurations

Implementation Details

The configuration logic now prioritizes demo mode in its evaluation order:

baseURL: process.env.REACT_APP_DEMO_MODE === 'true'
  ? 'http://localhost:10002'
  : process.env.NODE_ENV === 'production' 
    ? window.location.origin || 'http://localhost:9002' 
    : process.env.REACT_APP_BASE_URL || 'http://localhost:9002',

Testing

  • Verified that when demo mode is enabled (REACT_APP_DEMO_MODE=true), the application uses port 10002
  • Ensured that existing behavior is maintained when demo mode is not enabled

Related Issues

Resolves the requirement to use http://localhost:10002/ as the base URL in demo mode

@f7f376a1fcd0d0e11a10ed1b6577c9 f7f376a1fcd0d0e11a10ed1b6577c9 merged commit b57570a into main Apr 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants