fix: unify API URL config to use REACT_APP_API_URL
This commit is contained in:
@@ -26,7 +26,7 @@ export interface CollectionUpdateRequest {
|
|||||||
cover_asset_id?: number;
|
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 = () => {
|
export const useCollections = () => {
|
||||||
const { getToken } = useAuth();
|
const { getToken } = useAuth();
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export interface AssetListResponse {
|
|||||||
offset: number;
|
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 = {}) => {
|
export const useContentAssets = (filters: AssetFilters = {}) => {
|
||||||
const { getToken } = useAuth();
|
const { getToken } = useAuth();
|
||||||
|
|||||||
Reference in New Issue
Block a user