Skip to content

Commit 00b6399

Browse files
committed
fix: improve extension of Configuration class to fix issues in native ESM projects
This is needed for crawlee v4 which is native ESM.
1 parent 9dcff22 commit 00b6399

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/apify/src/configuration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class Configuration extends CoreConfiguration {
120120
// maps environment variables to config keys (e.g. `APIFY_MEMORY_MBYTES` to `memoryMbytes`)
121121
protected static override ENV_MAP = {
122122
// regular crawlee env vars are also supported
123-
...super.ENV_MAP,
123+
...CoreConfiguration.ENV_MAP,
124124

125125
// support crawlee env vars prefixed with `APIFY_` too
126126
APIFY_AVAILABLE_MEMORY_RATIO: 'availableMemoryRatio',
@@ -180,22 +180,22 @@ export class Configuration extends CoreConfiguration {
180180
};
181181

182182
protected static override INTEGER_VARS = [
183-
...super.INTEGER_VARS,
183+
...CoreConfiguration.INTEGER_VARS,
184184
'proxyPort',
185185
'containerPort',
186186
'metamorphAfterSleepMillis',
187187
'maxTotalChargeUsd',
188188
];
189189

190190
protected static override BOOLEAN_VARS = [
191-
...super.BOOLEAN_VARS,
191+
...CoreConfiguration.BOOLEAN_VARS,
192192
'isAtHome',
193193
'testPayPerEvent',
194194
'useChargingLogDataset',
195195
];
196196

197197
protected static override DEFAULTS = {
198-
...super.DEFAULTS,
198+
...CoreConfiguration.DEFAULTS,
199199
defaultKeyValueStoreId:
200200
LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID],
201201
defaultDatasetId:

0 commit comments

Comments
 (0)