fix: unify API URL config to use REACT_APP_API_URL
This commit is contained in:
1 parent
a8c80c5b75
commit
a3e4f5231a
2 files changed
+2
-2
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user