Skip to content

Commit 6206f88

Browse files
committed
fix: remove fallback to old backend URL, use only env variable for API base URL
1 parent ea347ef commit 6206f88

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/layout/Sidebar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
HiLogout
1717
} from 'react-icons/hi';
1818

19-
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'https://portfolio-tracker-backend-y7ne.onrender.com/api';
19+
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;
2020

2121
// Create axios instance with base URL
2222
const api = axios.create({

src/components/modals/AddStockModal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TextInput, NumberInput, Button } from '@tremor/react';
55
import axios from 'axios';
66

77
// Get API URL from environment variable, fallback to production URL if not set
8-
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'https://portfolio-tracker-backend-y7ne.onrender.com/api';
8+
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;
99

1010
// Create axios instance with base URL
1111
const api = axios.create({

src/services/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios from 'axios';
22
import { supabase } from '../config/supabase';
33

4-
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'https://portfolio-tracker-backend-y7ne.onrender.com/api';
4+
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;
55

66
// Create axios instance with base URL
77
const api = axios.create({

0 commit comments

Comments
 (0)