Skip to main content

Environment variables

GATSBY_REACT_APP_ENV

The environment where the app is being deployed to

dev | sit | uat | prod

GATSBY_REACT_APP_API_ENVIRONMENT

The environment where the API the app consumes is running on

mock | aws

GATSBY_APP_RUNTIME_TARGET

The runtime target where the application is being deployed to

aws | eplatform

GATSBY_SPARE_API_BASE_URL

Spare API URL (1)

GATSBY_MINBANK_API_BASE_URL

MinBank API URL (1)

GATSBY_ASK_API_BASE_URL

Ask API URL (1)

GATSBY_IPS_API_BASE_URL

Ips API URL (1)

GATSBY_FUNDS_API_BASE_URL

Funds API URL (1)

GATSBY_AUTH_ENABLE_FLOW

Boolean value indicating if the Auth flow must be present (if true will enable the login button)

false | true

GATSBY_AUTH_REDIRECT_URL

Auth redirect URL: the address to which the user will be redirected to login


1

The value of API URL is dependent on the value of GATSBY_APP_RUNTIME_TARGET.

If GATSBY_APP_RUNTIME_TARGET is aws:

  • The API URL should be the absolute URL to the API.

If GATSBY_APP_RUNTIME_TARGET is eplatform:

  • The API URL should be a relative path.
  • In this case, the page's origin will be used as a base path (for example: https://www-a1.dnb.no) and the configured API URL will be concatenated to that base path, in order to obtain the full API URL.