Skip to content

Commit c4e25e6

Browse files
committed
fix: update API URL to relative path and add Vercel configuration for API rewrites
1 parent 7f1074e commit c4e25e6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

client/services/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CRMEntry, Task, Meeting, AuthResponse, User, ForgotPasswordRequest, Ver
55
// ⚙️ API CONFIGURATION
66
// ============================================================================
77

8-
const API_URL = 'http://13.233.167.107/incial/api/v1';
8+
const API_URL = '/api/v1';
99

1010
//const API_URL = 'http://localhost:8080/api/v1';
1111

client/vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"rewrites": [
3+
{
4+
"source": "/api/:path*",
5+
"destination": "http://13.233.167.107/incial/api/:path*"
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)