Skip to content

Commit 3e8b208

Browse files
committed
fix(frontend): use VITE_API_BASE_URL in Dataframe axios request
1 parent 5357a82 commit 3e8b208

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/frontend/src/components/logged/Dataframe.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function Dataframe() {
3939
setLoading(true);
4040
try {
4141
const BACKEND_URL = import.meta.env.VITE_API_BASE_URL;
42-
const {data: response} = await axios.get(VITE_API_BASE_URL + '/api/last-week/');
42+
const { data: response } = await axios.get(`${BACKEND_URL}/api/last-week/`);
4343
var response_clean = response.last_week
4444
response_clean = response_clean.trim();
4545
var response_json = JSON.parse(response_clean);

docs/MIGRATION_PLAN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Steps
3939
- [x] Add `src/{domain,ports,adapters,application}` and map API calls via ports (created domain/ports/adapters; wired Strategies)
4040
- [x] Replace direct fetches with `TradeService`-like interfaces (Strategies.jsx)
4141
- [x] Configure envs (`VITE_API_BASE_URL`, `VITE_WS_URL`) and update README
42+
- [x] Normalize env usage in Dataframe.jsx (use VITE_API_BASE_URL)
43+
- [ ] Normalize env usage in Patrimony.jsx and Balance.jsx
4244
- [ ] Add minimal contract tests for adapters (mock fetch/WS)
4345
6) GitOps/Infra alignment
4446
- [ ] Restructure manifests to `infra/k8s/{base,overlays}` or Helm/Kustomize

0 commit comments

Comments
 (0)