import { Environment } from "credify-web-sdk" /* eslint-disable no-unused-vars */ let currentEnvironment = Environment.Dev export const setMarketEnvironment = (env: Environment) => { currentEnvironment = env } /* * @function getPassportWebUrl * @description get base url depends on environment. * @output a base url */ export const getMarketApiUrl = (): string => { switch (currentEnvironment) { case Environment.Local: return "http://localhost:3000" case Environment.Dev: return "https://dev-demo-api.credify.ninja" case Environment.SIT: return "https://sit-demo-api.credify.ninja" case Environment.UAT: return "https://uat-demo-api.credify.dev" case Environment.Sandbox: return "https://sandbox-demo-api.credify.dev" case Environment.Production: return "https://production-demo-api.credify.one" default: return "https://dev-demo-api.credify.ninja" } }