fix: unify API URL config to use REACT_APP_API_URL

This commit is contained in:
ajaysi committed 2026-04-04 06:54:23 +05:30
1 parent a8c80c5b75
commit a3e4f5231a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ export interface CollectionUpdateRequest {
cover_asset_id?: number;
}
const API_BASE_URL = process.env.REACT_APP_API_BASE_URL || 'http://localhost:8000';
const API_BASE_URL = process.env.REACT_APP_API_URL || process.env.REACT_APP_API_BASE_URL || 'http://localhost:8000';
export const useCollections = () => {
const { getToken } = useAuth();
+1 -1
View File
@@ -49,7 +49,7 @@ export interface AssetListResponse {
offset: number;
}
const API_BASE_URL = process.env.REACT_APP_API_BASE_URL || 'http://localhost:8000';
const API_BASE_URL = process.env.REACT_APP_API_URL || process.env.REACT_APP_API_BASE_URL || 'http://localhost:8000';
export const useContentAssets = (filters: AssetFilters = {}) => {
const { getToken } = useAuth();