File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ function addUserAgent(config: AxiosRequestConfig): AxiosRequestConfig {
1717}
1818
1919export function getApifyAPIBaseUrl ( ) : string {
20+ return process . env . APIFY_API_BASE_URL ;
2021 // Workaround for Actor server where the platform APIFY_API_BASE_URL did not work with getActorDefinition from actors.ts
2122 if ( process . env . APIFY_IS_AT_HOME ) return 'https://api.apify.com' ;
2223 return process . env . APIFY_API_BASE_URL || 'https://api.apify.com' ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export async function getActorDefinition(
3131 apifyToken : string ,
3232 limit : number = ACTOR_README_MAX_LENGTH ,
3333) : Promise < ActorDefinitionPruned | null > {
34- const client = new ApifyClient ( { token : apifyToken } ) ;
34+ const client = new ApifyClient ( { token : apifyToken } ) ;
3535 const actorClient = client . actor ( actorIdOrName ) ;
3636 try {
3737 // Fetch actor details
You can’t perform that action at this time.
0 commit comments