Skip to content

Commit d9ee18b

Browse files
authored
Feat/hackthon features (#342)
* feat: implemented hackathon features * fix: update * fix: added the staging api * fix: update API base URL to use environment variable * fix: correct API_BASE_URL assignment and comment out unused variables
1 parent 730c794 commit d9ee18b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/api/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
22
import Cookies from 'js-cookie';
33
import { useAuthStore } from '@/lib/stores/auth-store';
44

5-
// const API_BASE_URL = 'https://staging-api.boundlessfi.xyz/api';
6-
const API_BASE_URL = 'http://localhost:8000/api';
5+
const API_BASE_URL = 'https://staging-api.boundlessfi.xyz/api';
6+
// const API_BASE_URL = 'http://localhost:8000/api';
77
// const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL;
88
if (!API_BASE_URL) {
99
throw new Error('NEXT_PUBLIC_API_URL environment variable is not defined');

lib/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export const config = {
2-
apiUrl: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000/api',
2+
apiUrl:
3+
process.env.NEXT_PUBLIC_API_URL ||
4+
'https://staging-api.boundlessfi.xyz/api',
35
};
46

57
export const socialLinks = {

0 commit comments

Comments
 (0)