UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

61 lines (59 loc) 1.9 kB
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); //#region src/constants.ts const LEGACY_DEV_INSTANCE_SUFFIXES = [ ".lcl.dev", ".lclstage.dev", ".lclclerk.com" ]; const CURRENT_DEV_INSTANCE_SUFFIXES = [ ".accounts.dev", ".accountsstage.dev", ".accounts.lclclerk.com" ]; const DEV_OR_STAGING_SUFFIXES = [ ".lcl.dev", ".stg.dev", ".lclstage.dev", ".stgstage.dev", ".dev.lclclerk.com", ".stg.lclclerk.com", ".accounts.lclclerk.com", "accountsstage.dev", "accounts.dev" ]; const LOCAL_ENV_SUFFIXES = [ ".lcl.dev", "lclstage.dev", ".lclclerk.com", ".accounts.lclclerk.com" ]; const STAGING_ENV_SUFFIXES = [".accountsstage.dev"]; const LOCAL_API_URL = "https://api.lclclerk.com"; const STAGING_API_URL = "https://api.clerkstage.dev"; const PROD_API_URL = "https://api.clerk.com"; const LOCAL_FAPI_URL = "https://frontend-api.lclclerk.com"; const STAGING_FAPI_URL = "https://frontend-api.clerkstage.dev"; const PROD_FAPI_URL = "https://frontend-api.clerk.dev"; const DEFAULT_PROXY_PATH = "/__clerk"; /** * Returns the URL for a static image * using the new img.clerk.com service */ function iconImageUrl(id, format = "svg") { return `https://img.clerk.com/static/${id}.${format}`; } //#endregion exports.CURRENT_DEV_INSTANCE_SUFFIXES = CURRENT_DEV_INSTANCE_SUFFIXES; exports.DEFAULT_PROXY_PATH = DEFAULT_PROXY_PATH; exports.DEV_OR_STAGING_SUFFIXES = DEV_OR_STAGING_SUFFIXES; exports.LEGACY_DEV_INSTANCE_SUFFIXES = LEGACY_DEV_INSTANCE_SUFFIXES; exports.LOCAL_API_URL = LOCAL_API_URL; exports.LOCAL_ENV_SUFFIXES = LOCAL_ENV_SUFFIXES; exports.LOCAL_FAPI_URL = LOCAL_FAPI_URL; exports.PROD_API_URL = PROD_API_URL; exports.PROD_FAPI_URL = PROD_FAPI_URL; exports.STAGING_API_URL = STAGING_API_URL; exports.STAGING_ENV_SUFFIXES = STAGING_ENV_SUFFIXES; exports.STAGING_FAPI_URL = STAGING_FAPI_URL; exports.iconImageUrl = iconImageUrl; //# sourceMappingURL=constants.js.map