created new config lib
This commit is contained in:
parent
bc14acaeba
commit
68a4c2d550
36 changed files with 2681 additions and 134 deletions
9
apps/web-app/.env
Normal file
9
apps/web-app/.env
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# API Configuration
|
||||
VITE_API_BASE_URL=http://localhost:4000/api
|
||||
VITE_DATA_SERVICE_URL=http://localhost:3001
|
||||
VITE_PORTFOLIO_SERVICE_URL=http://localhost:3002
|
||||
VITE_STRATEGY_SERVICE_URL=http://localhost:3003
|
||||
VITE_EXECUTION_SERVICE_URL=http://localhost:3004
|
||||
|
||||
# Environment
|
||||
VITE_NODE_ENV=development
|
||||
|
|
@ -11,7 +11,7 @@ import {
|
|||
UpdateProviderMappingRequest,
|
||||
} from '../types';
|
||||
|
||||
const API_BASE_URL = 'http://localhost:4000/api';
|
||||
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'http://localhost:4000/api';
|
||||
|
||||
class ExchangeApiService {
|
||||
private async request<T>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue