Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add metaOrigin to Actor.config #320

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/apify/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
APIFY_ENV_VARS,
LOCAL_ACTOR_ENV_VARS,
LOCAL_APIFY_ENV_VARS,
META_ORIGINS,
} from '@apify/consts';
import { Configuration as CoreConfiguration } from '@crawlee/core';
import type { ConfigurationOptions as CoreConfigurationOptions } from '@crawlee/core';
Expand All @@ -26,6 +27,7 @@ export interface ConfigurationOptions extends CoreConfigurationOptions {
userId?: string;
inputSecretsPrivateKeyPassphrase?: string;
inputSecretsPrivateKeyFile?: string;
metaOrigin?: typeof META_ORIGINS[keyof typeof META_ORIGINS];
}

/**
Expand Down Expand Up @@ -87,6 +89,7 @@ export interface ConfigurationOptions extends CoreConfigurationOptions {
* `containerUrl` | `ACTOR_WEB_SERVER_URL` | `'http://localhost:4321'`
* `inputKey` | `ACTOR_INPUT_KEY` | `'INPUT'`
* `metamorphAfterSleepMillis` | `APIFY_METAMORPH_AFTER_SLEEP_MILLIS` | `300e3`
* `metaOrigin` | `APIFY_META_ORIGIN` | -
* `proxyHostname` | `APIFY_PROXY_HOSTNAME` | `'proxy.apify.com'`
* `proxyPassword` | `APIFY_PROXY_PASSWORD` | -
* `proxyPort` | `APIFY_PROXY_PORT` | `8000`
Expand Down Expand Up @@ -140,6 +143,7 @@ export class Configuration extends CoreConfiguration {
APIFY_PROXY_PORT: 'proxyPort',
APIFY_INPUT_SECRETS_PRIVATE_KEY_FILE: 'inputSecretsPrivateKeyFile',
APIFY_INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE: 'inputSecretsPrivateKeyPassphrase',
APIFY_META_ORIGIN: 'metaOrigin',

// Actor env vars
ACTOR_DEFAULT_DATASET_ID: 'defaultDatasetId',
Expand Down