Skip to content

Commit

Permalink
Merge pull request #5 from Ahzem/main
Browse files Browse the repository at this point in the history
Update production API base URL to Azure deployment
  • Loading branch information
Ahzem authored Dec 17, 2024
2 parents eac0b68 + 3b5ec0c commit 632bfd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/api.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 632bfd8

Please sign in to comment.