From ff39d10054183d6edfb4d65d16dd5c0a1fc84e04 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Thu, 3 Jul 2025 22:50:43 +0200 Subject: [PATCH 01/17] docs: Improve Actors environment variables docs Signed-off-by: Patrik Braborec --- .../environment_variables.md | 96 ++++++++++++++----- 1 file changed, 74 insertions(+), 22 deletions(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 509c10c068..704d9fa2f9 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -14,6 +14,21 @@ import TabItem from '@theme/TabItem'; --- +## How to use environment variables in Actors + +There are two ways how you can set up environment variables for Actors: + +- [Set up environment variables in `actor.json`](#set-up-environment-variables-in-actoractorjson) +- [Set up environment variables in Apify Console](#set-up-environment-variables-in-apify-console) + +:::info Environment variables overwrite + +After setting up variables in Apify Console, remove the `environmentVariables` from `.actor/actor.json`. Otherwise, variables from `.actor/actor.json` will override variables in Apify Console. + +::: + +See how you can [access environment variables in Actors](#actor-environment-variables). + ## System environment variables Apify sets several system environment variables for each Actor run. These variables provide essential context and information about the Actor's execution environment. @@ -68,6 +83,41 @@ All date-related variables use the UTC timezone and are in [ISO 8601](https://en ::: +## Set up environment variables in `actor.json` + +Actor owners can define custom environment variables in `.actor/actor.json`. All keys from `environmentVariables` will be set as environment variables into Apify platform after you push Actor to Apify. + +```json +{ + "actorSpecification": 1, + "name": "dataset-to-mysql", + "version": "0.1", + "buildTag": "latest", + "environmentVariables": { + "MYSQL_USER": "my_username", + "MYSQL_PASSWORD": "@mySecretPassword" + } +} +``` + +## Set up environment variables in Apify Console + +Actor owners can define custom environment variables to pass additional configuration to their Actors. To set custom variables: + +1. Go to your Actor's **Source** page in the Apify Console + +1. Navigate to the **Environment variables** section. + +1. Add your custom variables. + +For sensitive data like API keys or passwords, enable the **Secret** option. This encrypt the value and redacts it from logs to prevent accidental exposure. + +:::info Build-time variables + +Custom environment variables are set during the Actor's build process and cannot be changed for existing builds. For more information, check out the [Builds](../builds_and_runs/builds.md) page. + +::: + ## Access environment variables You can access environment variables in your code as follows: @@ -78,7 +128,17 @@ You can access environment variables in your code as follows: In Node.js, use the `process.env` object: ```js -console.log(process.env.APIFY_USER_ID); +import { Actor } from 'apify'; + +await Actor.init(); + +// get api_token +const api_token = process.env.api_token + +// print api_token to console +console.log(api_token); + +await Actor.exit(); ``` @@ -88,15 +148,25 @@ In Python, use the `os.environ` dictionary: ```python import os -print(os.environ['APIFY_USER_ID']) +print(os.environ['api_token']) + +from apify import Actor + +async def main(): + async with Actor: + # get api_token + userId = os.environ['api_token'] + + # print api_token to console + print(userId) ``` -## Use the `Configuration` class +## Access system environment variables -For more convenient access to Actor configuration, use the [`Configuration`](/sdk/js/reference/class/Configuration) class +For more convenient access to Actor system variables and other configuration, use the [`Configuration`](/sdk/js/reference/class/Configuration) class as follows: @@ -135,24 +205,6 @@ async def main(): -## Custom environment variables - -Actor owners can define custom environment variables to pass additional configuration to their Actors. To set custom variables: - -1. Go to your Actor's **Source** page in the Apify Console - -1. Navigate to the **Environment variables** section. - -1. Add your custom variables. - -For sensitive data like API keys or passwords, enable the **Secret** option. This encrypt the value and redacts it from logs to prevent accidental exposure. - -:::info Build-time variables - -Custom environment variables are set during the Actor's build process and cannot be changed for existing builds. For more information, check out the [Builds](../builds_and_runs/builds.md) page. - -::: - ## Build-time environment variables You can also use environment variables during the Actor's build process. In this case, they function as Docker build arguments. To use them in your Dockerfile, include `ARG` instruction: From f59a3f25276e8fd5db29ba7d69b92c42a0685299 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Thu, 3 Jul 2025 22:58:59 +0200 Subject: [PATCH 02/17] chore: fix links in Actors environment docs Signed-off-by: Patrik Braborec --- .../programming_interface/environment_variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 704d9fa2f9..1300b1249a 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -18,7 +18,7 @@ import TabItem from '@theme/TabItem'; There are two ways how you can set up environment variables for Actors: -- [Set up environment variables in `actor.json`](#set-up-environment-variables-in-actoractorjson) +- [Set up environment variables in `actor.json`](#set-up-environment-variables-in-actorjson) - [Set up environment variables in Apify Console](#set-up-environment-variables-in-apify-console) :::info Environment variables overwrite @@ -27,7 +27,7 @@ After setting up variables in Apify Console, remove the `environmentVariables` f ::: -See how you can [access environment variables in Actors](#actor-environment-variables). +See how you can [access environment variables in Actors](#access-environment-variables). ## System environment variables @@ -83,7 +83,7 @@ All date-related variables use the UTC timezone and are in [ISO 8601](https://en ::: -## Set up environment variables in `actor.json` +## Set up environment variables in actor.json Actor owners can define custom environment variables in `.actor/actor.json`. All keys from `environmentVariables` will be set as environment variables into Apify platform after you push Actor to Apify. From 6e113021db27a6d3a4b1186a162459a8d036a5dd Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Thu, 3 Jul 2025 22:59:55 +0200 Subject: [PATCH 03/17] docs: Change example in Actor environment docs Signed-off-by: Patrik Braborec --- .../development/programming_interface/environment_variables.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 1300b1249a..9dc8ca07e3 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -94,8 +94,7 @@ Actor owners can define custom environment variables in `.actor/actor.json`. All "version": "0.1", "buildTag": "latest", "environmentVariables": { - "MYSQL_USER": "my_username", - "MYSQL_PASSWORD": "@mySecretPassword" + "api_token": "token_123", } } ``` From 1fe541debb4502876626272e9635b13b5b08df4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Olender?= Date: Thu, 3 Jul 2025 23:55:34 +0200 Subject: [PATCH 04/17] fix mdlint --- .../development/programming_interface/environment_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 9dc8ca07e3..498cf2cef3 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -68,7 +68,7 @@ Here's a table of key system environment variables: | `APIFY_DEDICATED_CPUS` | Number of CPU cores reserved for the actor, based on allocated memory. | | `APIFY_DISABLE_OUTDATED_WARNING` | Controls the display of outdated version warnings. Set to `1` to suppress notifications about updates. | | `APIFY_WORKFLOW_KEY` | Identifier used for grouping related runs and API calls together. | -| `APIFY_META_ORIGIN` | Specifies how an Actor run was started. Possible values are [here](/platform/actors/running/runs-and-builds#origin) | +| `APIFY_META_ORIGIN` | Specifies how an Actor run was started. Possible values are in [Runs and builds](/platform/actors/running/runs-and-builds#origin) documentation. | | `APIFY_SDK_LATEST_VERSION` | Specifies the most recent release version of the Apify SDK for JavaScript. Used for checking for updates. | | `APIFY_INPUT_SECRETS_KEY_FILE` | Path to the secret key used to decrypt [Secret inputs](/platform/actors/development/actor-definition/input-schema/secret-input). | | `APIFY_INPUT_SECRETS_KEY_PASSPHRASE` | Passphrase for the input secret key specified in `APIFY_INPUT_SECRETS_KEY_FILE`. | From 27c720abc3cecdfe3334021992125806f0eaf81b Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 13:23:30 +0200 Subject: [PATCH 05/17] Update sources/platform/actors/development/programming_interface/environment_variables.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Olender <92638966+TC-MO@users.noreply.github.com> --- .../development/programming_interface/environment_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 498cf2cef3..3656d4e2e1 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -27,7 +27,7 @@ After setting up variables in Apify Console, remove the `environmentVariables` f ::: -See how you can [access environment variables in Actors](#access-environment-variables). +Check out how you can [access environment variables in Actors](#access-environment-variables). ## System environment variables From 25207f707c8b92bbfaf63be027ce8c2a0021f4d9 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 13:29:20 +0200 Subject: [PATCH 06/17] Update sources/platform/actors/development/programming_interface/environment_variables.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Olender <92638966+TC-MO@users.noreply.github.com> --- .../development/programming_interface/environment_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 3656d4e2e1..6522c262a3 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -109,7 +109,7 @@ Actor owners can define custom environment variables to pass additional configur 1. Add your custom variables. -For sensitive data like API keys or passwords, enable the **Secret** option. This encrypt the value and redacts it from logs to prevent accidental exposure. +For sensitive data like API keys or passwords, enable the **Secret** option. This will encrypt the value and redact it from logs to prevent accidental exposure. :::info Build-time variables From 2891771bfd7f43a58487ac08af69e8a7ff5128a2 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 13:29:35 +0200 Subject: [PATCH 07/17] Update sources/platform/actors/development/programming_interface/environment_variables.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Olender <92638966+TC-MO@users.noreply.github.com> --- .../programming_interface/environment_variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 6522c262a3..ded8672dc5 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -21,9 +21,9 @@ There are two ways how you can set up environment variables for Actors: - [Set up environment variables in `actor.json`](#set-up-environment-variables-in-actorjson) - [Set up environment variables in Apify Console](#set-up-environment-variables-in-apify-console) -:::info Environment variables overwrite +:::info Environment variable precedence -After setting up variables in Apify Console, remove the `environmentVariables` from `.actor/actor.json`. Otherwise, variables from `.actor/actor.json` will override variables in Apify Console. +Your local `.actor/actor.json` file overrides variables set in Apify Console. To use Console variables, remove the `environmentVariables` key from the local file. ::: From c4cb588c3c933b951c194cc9839195b5080ea232 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 13:29:58 +0200 Subject: [PATCH 08/17] Update sources/platform/actors/development/programming_interface/environment_variables.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Olender <92638966+TC-MO@users.noreply.github.com> --- .../development/programming_interface/environment_variables.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index ded8672dc5..87037d32d6 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -113,8 +113,9 @@ For sensitive data like API keys or passwords, enable the **Secret** option. Thi :::info Build-time variables -Custom environment variables are set during the Actor's build process and cannot be changed for existing builds. For more information, check out the [Builds](../builds_and_runs/builds.md) page. +Once you start a build, you cannot change its environment variables. To use different variables, you must create a new build. +Learn more in [Builds](../builds_and_runs/builds.md). ::: ## Access environment variables From f2aafda2220691ffc94d11de2c0699bfea62b19a Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 13:58:26 +0200 Subject: [PATCH 09/17] Update sources/platform/actors/development/programming_interface/environment_variables.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Olender <92638966+TC-MO@users.noreply.github.com> --- .../development/programming_interface/environment_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 87037d32d6..b7a69538e3 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -85,7 +85,7 @@ All date-related variables use the UTC timezone and are in [ISO 8601](https://en ## Set up environment variables in actor.json -Actor owners can define custom environment variables in `.actor/actor.json`. All keys from `environmentVariables` will be set as environment variables into Apify platform after you push Actor to Apify. +Actor owners can define custom environment variables in `.actor/actor.json`. All keys from `environmentVariables` will be set as environment variables into the Apify platform after you push Actor to Apify. ```json { From 05cc36c839cedd7d4759891548b6472d4f3522c7 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 14:14:04 +0200 Subject: [PATCH 10/17] docs: Update env variables example Signed-off-by: Patrik Braborec --- .../environment_variables.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index b7a69538e3..f274de7035 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -94,7 +94,7 @@ Actor owners can define custom environment variables in `.actor/actor.json`. All "version": "0.1", "buildTag": "latest", "environmentVariables": { - "api_token": "token_123", + "MYSQL_USER": "my_username", } } ``` @@ -132,11 +132,11 @@ import { Actor } from 'apify'; await Actor.init(); -// get api_token -const api_token = process.env.api_token +// get MYSQL_USER +const mysql_user = process.env.MYSQL_USER -// print api_token to console -console.log(api_token); +// print MYSQL_USER to console +console.log(mysql_user); await Actor.exit(); ``` @@ -148,17 +148,17 @@ In Python, use the `os.environ` dictionary: ```python import os -print(os.environ['api_token']) +print(os.environ['MYSQL_USER']) from apify import Actor async def main(): async with Actor: - # get api_token - userId = os.environ['api_token'] + # get MYSQL_USER + mysql_user = os.environ['MYSQL_USER'] - # print api_token to console - print(userId) + # print MYSQL_USER to console + print(mysql_user) ``` From 3e83d6e3cb1b6c261d854e03d61fa290d5fb2464 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 16:14:45 +0200 Subject: [PATCH 11/17] docs: Add explanation of actor.json with git-workflow Signed-off-by: Patrik Braborec --- .../programming_interface/environment_variables.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index f274de7035..3925fa648a 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -99,6 +99,12 @@ Actor owners can define custom environment variables in `.actor/actor.json`. All } ``` +:::warn Git-workflow with actor.json + +Be aware that if you define `environmentVariables` in `.actor/actor.json`, it only works with [Apify CLI](/cli). If you use a Git workflow for Actor development, the environment variables will not work properly, and we encourage you to define them in Apify Console. + +::: + ## Set up environment variables in Apify Console Actor owners can define custom environment variables to pass additional configuration to their Actors. To set custom variables: @@ -214,7 +220,7 @@ ARG MY_BUILD_VARIABLE RUN echo $MY_BUILD_VARIABLE ``` -:::caution Insecure build variables +:::caution Variables set during the build Build-time environment variables are not suitable for secrets, as they are not encrypted. From 97fb2d09beeef61653509170e93e7afbbb8bb518 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 16:17:06 +0200 Subject: [PATCH 12/17] Update sources/platform/actors/development/programming_interface/environment_variables.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Olender <92638966+TC-MO@users.noreply.github.com> --- .../development/programming_interface/environment_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 3925fa648a..241184e7db 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -83,7 +83,7 @@ All date-related variables use the UTC timezone and are in [ISO 8601](https://en ::: -## Set up environment variables in actor.json +## Set up environment variables in `actor.json` Actor owners can define custom environment variables in `.actor/actor.json`. All keys from `environmentVariables` will be set as environment variables into the Apify platform after you push Actor to Apify. From 672168ecc7b0b821a67ab31c074603988d0d3d42 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 16:19:04 +0200 Subject: [PATCH 13/17] Update sources/platform/actors/development/programming_interface/environment_variables.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michał Olender <92638966+TC-MO@users.noreply.github.com> --- .../development/programming_interface/environment_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 241184e7db..0754040a38 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -16,7 +16,7 @@ import TabItem from '@theme/TabItem'; ## How to use environment variables in Actors -There are two ways how you can set up environment variables for Actors: +You can set up environment variables for Actors in two ways: - [Set up environment variables in `actor.json`](#set-up-environment-variables-in-actorjson) - [Set up environment variables in Apify Console](#set-up-environment-variables-in-apify-console) From fa1a1f67bd54791fd3c6a9ea1a9506b7128e3de2 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Fri, 4 Jul 2025 16:22:10 +0200 Subject: [PATCH 14/17] docs: Fix note section Signed-off-by: Patrik Braborec --- .../development/programming_interface/environment_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 0754040a38..4ed3485d86 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -99,7 +99,7 @@ Actor owners can define custom environment variables in `.actor/actor.json`. All } ``` -:::warn Git-workflow with actor.json +:::info Git-workflow with actor.json Be aware that if you define `environmentVariables` in `.actor/actor.json`, it only works with [Apify CLI](/cli). If you use a Git workflow for Actor development, the environment variables will not work properly, and we encourage you to define them in Apify Console. From 7c9e756d07f01c87eb58882031d1fd16ab114b4c Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Mon, 7 Jul 2025 14:27:00 +0200 Subject: [PATCH 15/17] docs: Revert Configuration class section Signed-off-by: Patrik Braborec --- .../programming_interface/environment_variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 4ed3485d86..57367d3db2 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -170,9 +170,9 @@ async def main(): -## Access system environment variables +## Use the `Configuration` class -For more convenient access to Actor system variables and other configuration, use the [`Configuration`](/sdk/js/reference/class/Configuration) class as follows: +For more convenient access to Actor configuration, use the [`Configuration`](/sdk/js/reference/class/Configuration) class From 507b9a1bebbfb191039f50975e4aed729668d6b3 Mon Sep 17 00:00:00 2001 From: Patrik Braborec Date: Tue, 8 Jul 2025 11:29:03 +0200 Subject: [PATCH 16/17] Update sources/platform/actors/development/programming_interface/environment_variables.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lukáš Křivka --- .../development/programming_interface/environment_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 57367d3db2..48491325ab 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -101,7 +101,7 @@ Actor owners can define custom environment variables in `.actor/actor.json`. All :::info Git-workflow with actor.json -Be aware that if you define `environmentVariables` in `.actor/actor.json`, it only works with [Apify CLI](/cli). If you use a Git workflow for Actor development, the environment variables will not work properly, and we encourage you to define them in Apify Console. +Be aware that if you define `environmentVariables` in `.actor/actor.json`, it only works with [Apify CLI](/cli). If you use a Git workflow for Actor development, the environment variables will not be set from `.actor/actor.json` and you need to define them in Apify Console. ::: From dfbc6b8695dcbde13827fbd96040630ec8994e7c Mon Sep 17 00:00:00 2001 From: patrikbraborec Date: Tue, 8 Jul 2025 11:36:18 +0200 Subject: [PATCH 17/17] Fix how-to title grammar --- .../programming_interface/environment_variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 48491325ab..9c5db6556b 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -14,9 +14,9 @@ import TabItem from '@theme/TabItem'; --- -## How to use environment variables in Actors +## How to use environment variables in an Actor -You can set up environment variables for Actors in two ways: +You can set up environment variables for your Actor in two ways: - [Set up environment variables in `actor.json`](#set-up-environment-variables-in-actorjson) - [Set up environment variables in Apify Console](#set-up-environment-variables-in-apify-console)