mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-02 11:39:09 +00:00
14 lines
604 B
TypeScript
14 lines
604 B
TypeScript
export const STORAGE_EXPLORER_CONFIG = {
|
|
getUrl: (customerName: string): string => {
|
|
const urlTemplate = process.env.STORAGE_EXPLORER_API_URL;
|
|
if (!urlTemplate) {
|
|
throw new Error('STORAGE_EXPLORER_API_URL environment variable is not set');
|
|
}
|
|
// Replace {customer_id} placeholder with actual customer ID
|
|
// For local: http://172.17.0.1:8000/api (no placeholder)
|
|
// For prod: https://storage-explorer-{customer_id}.dadosfera.ai/api
|
|
return urlTemplate.replace('{customer}', customerName);
|
|
},
|
|
timeout: parseInt(process.env.STORAGE_EXPLORER_TIMEOUT || '30000', 10),
|
|
};
|