apify / apify-storage-local-js

Local emulation of the apify-client NPM package, which enables local use of Apify SDK.
3 stars 4 forks source link

Allow overriding configuration via env vars #42

Closed B4nan closed 2 years ago

B4nan commented 2 years ago

Currently we create the storage instance in SDK and use its configuration mechanisms to get the options with env var support. We need to simplify this in the SDK 3, so the handling of env vars should be moved to the storage implementation, somewhere here. Note that the env vars always take precedence.

The goal of this PR is to be able to remove this snippet from the SDK 3 and maintain similar functionality: