Config

SDK initialization configuration object. Set environment type and caching options with Config.

Example

{
  "env": "dev",
  "cache": true
}

Type Signature

type Config = {
  env?: Env;
  cache?: boolean;
};

Fields

ParamTypeDefault ValueDescription

env

"dev"

dev provides verbose logging. prod provides minimal logging, best for production environment.

cache

boolean

true

Caching configuration. true to cache results, otherwise set to false.

Last updated

Was this helpful?