FINAL FIX: Docker API URL resolution for internal service communication

- Fixed internal API calls in Docker environment to use port 3000 instead of 9000
- Added DOCKER_ENV detection to properly route internal fetch requests
- Resolves ECONNREFUSED errors when APIs try to call each other within container
- Trade validation now works correctly in Docker: 5 USD position validates properly
- Successfully tested: amountUSD field properly passed through validation pipeline
- Both development and Docker environments now fully functional
This commit is contained in:
mindesbunister
2025-07-16 16:35:09 +02:00
parent befe860188
commit bd04e0b6a8
24 changed files with 2091 additions and 9 deletions

14
app/chart-test/page.tsx Normal file
View File

@@ -0,0 +1,14 @@
'use client'
import React from 'react'
import TradingChart from '../../components/TradingChart'
export default function SimpleChartTest() {
return (
<div className="min-h-screen bg-gray-900 p-4">
<div className="max-w-7xl mx-auto">
<h1 className="text-2xl font-bold text-white mb-6">Chart Test</h1>
<TradingChart />
</div>
</div>
)
}