fix: unify API URL config to use REACT_APP_API_URL

This commit is contained in:
ajaysi
2026-04-04 06:54:23 +05:30
parent a8c80c5b75
commit a3e4f5231a
2 changed files with 2 additions and 2 deletions

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();

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();