Skip to Content

resolveAppApiUrl()

function resolveAppApiUrl(config?): string;

Resolve the app API URL from (in priority order):

  1. explicit override
  2. PRETERNATURAL_MODEM_APP_BACKEND_URL / NEXT_PUBLIC_* env vars
  3. preset for the given environment (or PRETERNATURAL_MODEM_ENV)

Throws with an actionable message if no URL can be resolved.

Parameters

config?

ResolveUrlConfig = {}

Last updated on