Skip to content

Latest commit

Β 

History

History
21 lines (18 loc) Β· 911 Bytes

File metadata and controls

21 lines (18 loc) Β· 911 Bytes

Configuration

In its current state, the API supports the following env vars:

πŸ’« Required for production usage

  • API_HOST_BASE_URL: The base url of the api to be used for e.g. HATEOS links.
  • NODE_ENV: Indicates the environment: production, or development.
    • Default: development

πŸ‘©β€πŸ’» Required, if used with a frontend application

  • API_FRONTEND_HOST_BASE_URL: The base url of the frontend application to be used for e.g. cookies.
  • API_FRONTEND_COOKIE_PREFIX: The prefix for cookie names.
    • Default: api

Optional

  • API_JSON_SERIALIZER_PRIVATE_PROPERTY_PREFIX: Defines the prefix used to determine, whether a key and value pair of the response body will be sent to the client or not.
    • Example: _
    • Default: $