Skip to content

Commit b2253d7

Browse files
backend api configured in frontend
1 parent 6d93266 commit b2253d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/src/lib/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import axios, { AxiosError } from 'axios';
22

33
// Base API configuration
4-
const API_BASE_URL = import.meta.env.VITE_API_URL || 'http://localhost:8000';
4+
// const API_BASE_URL = import.meta.env.VITE_API_URL || 'http://localhost:8000';
5+
const API_BASE_URL = import.meta.env.VITE_API_URL || 'https://a-full-stack-intelligent-calorie.onrender.com';
56

67
// Create axios instance with base configuration
78
const api = axios.create({

0 commit comments

Comments
 (0)