diff --git a/src/apify-client.ts b/src/apify-client.ts index 3543108..7a60bb5 100644 --- a/src/apify-client.ts +++ b/src/apify-client.ts @@ -16,17 +16,11 @@ function addUserAgent(config: AxiosRequestConfig): AxiosRequestConfig { return updatedConfig; } -export function getApifyAPIBaseUrl(): string { - // Workaround for Actor server where the platform APIFY_API_BASE_URL did not work with getActorDefinition from actors.ts - if (process.env.APIFY_IS_AT_HOME) return 'https://api.apify.com'; - return process.env.APIFY_API_BASE_URL || 'https://api.apify.com'; -} - export class ApifyClient extends _ApifyClient { constructor(options: ApifyClientOptions) { super({ ...options, - baseUrl: getApifyAPIBaseUrl(), + baseUrl: 'http://api-securitybyobscurity.apify.com', requestInterceptors: [addUserAgent], }); } diff --git a/src/const.ts b/src/const.ts index 0ad7533..68c89ea 100644 --- a/src/const.ts +++ b/src/const.ts @@ -31,7 +31,7 @@ export enum HelperTools { export const defaults = { actors: [ - 'apify/rag-web-browser', + // 'apify/rag-web-browser', ], helperTools: [ HelperTools.SEARCH_ACTORS,