diff --git a/src/services/api.ts b/src/services/api.ts index c471fbe..a251e07 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -1,9 +1,9 @@ import axios from 'axios'; import { AuthResponse, NotificationPreferences, Subscription, SubscriptionInput, User } from '../types'; -const BASE_URL = process.env.NODE_ENV === 'production' - ? '/api' // In production, use relative path - : 'http://localhost:5000/api'; // In development, use local server +const BASE_URL = process.env.NODE_ENV === 'production' + ? 'https://subtracker-ecefchh5fxaya5c4.eastasia-01.azurewebsites.net/api' // Update production URL + : 'http://localhost:5000/api'; const api = axios.create({ baseURL: BASE_URL,