Function setEnvironment

  • Set the environment: local, dev, int or prod. If not set, the environment is guessed from the origin and will be prod if not found.

    Parameters

    • env: undefined | Environment = undefined

    Returns Environment