Skip to content

Commit 4309bfe

Browse files
committed
chore: update API base URL to staging endpoint for Better Auth integration
1 parent 951d107 commit 4309bfe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
22
import { useAuthStore } from '@/lib/stores/auth-store';
33

4-
const API_BASE_URL = 'https://api.boundlessfi.xyz/api';
4+
const API_BASE_URL = 'https://staging-api.boundlessfi.xyz';
55
// const API_BASE_URL = 'http://localhost:8000/api';
66
// const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL;
77
if (!API_BASE_URL) {

lib/auth-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { emailOTPClient } from 'better-auth/client/plugins';
55
// Better Auth endpoints are at /api/auth, so we need to construct the baseURL correctly
66
const getAuthBaseURL = () => {
77
const apiUrl =
8-
process.env.NEXT_PUBLIC_API_URL || 'https://api.boundlessfi.xyz';
8+
process.env.NEXT_PUBLIC_API_URL || 'https://staging-api.boundlessfi.xyz';
99
// Remove trailing slash
1010
const baseURL = apiUrl.replace(/\/$/, '');
1111

0 commit comments

Comments
 (0)