We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d214c4 commit 79d3aedCopy full SHA for 79d3aed
frontend/src/services/api/analysisAPI.js
@@ -6,7 +6,7 @@ export const analysisAPI = {
6
analyzeStock: async (ticker) => {
7
try {
8
// Use the StockSense AI API endpoint
9
- const aiApiUrl = import.meta.env.VITE_AI_API_URL || 'http://localhost:8001';
+ const aiApiUrl = import.meta.env.VITE_AI_API_URL;
10
const response = await axios.get(`${aiApiUrl}/analyze/${ticker}`);
11
return response.data;
12
} catch (error) {
frontend/src/services/api/client.js
@@ -1,6 +1,7 @@
1
import axios from 'axios';
2
3
-const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'http://localhost:8000/api';
+const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;
4
+
5
const apiClient = axios.create({
baseURL: API_BASE_URL,
0 commit comments