UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

1 lines 1.81 kB
{"version":3,"file":"constants.mjs","names":[],"sources":["../src/constants.ts"],"sourcesContent":["export const LEGACY_DEV_INSTANCE_SUFFIXES = ['.lcl.dev', '.lclstage.dev', '.lclclerk.com'];\nexport const CURRENT_DEV_INSTANCE_SUFFIXES = ['.accounts.dev', '.accountsstage.dev', '.accounts.lclclerk.com'];\nexport const DEV_OR_STAGING_SUFFIXES = [\n '.lcl.dev',\n '.stg.dev',\n '.lclstage.dev',\n '.stgstage.dev',\n '.dev.lclclerk.com',\n '.stg.lclclerk.com',\n '.accounts.lclclerk.com',\n 'accountsstage.dev',\n 'accounts.dev',\n];\nexport const LOCAL_ENV_SUFFIXES = ['.lcl.dev', 'lclstage.dev', '.lclclerk.com', '.accounts.lclclerk.com'];\nexport const STAGING_ENV_SUFFIXES = ['.accountsstage.dev'];\nexport const LOCAL_API_URL = 'https://api.lclclerk.com';\nexport const STAGING_API_URL = 'https://api.clerkstage.dev';\nexport const PROD_API_URL = 'https://api.clerk.com';\n\nexport const LOCAL_FAPI_URL = 'https://frontend-api.lclclerk.com';\nexport const STAGING_FAPI_URL = 'https://frontend-api.clerkstage.dev';\nexport const PROD_FAPI_URL = 'https://frontend-api.clerk.dev';\n\nexport const DEFAULT_PROXY_PATH = '/__clerk';\n\n/**\n * Returns the URL for a static image\n * using the new img.clerk.com service\n */\nexport function iconImageUrl(id: string, format: 'svg' | 'jpeg' = 'svg'): string {\n return `https://img.clerk.com/static/${id}.${format}`;\n}\n"],"mappings":";AAAA,MAAa,+BAA+B;CAAC;CAAY;CAAiB;AAAe;AACzF,MAAa,gCAAgC;CAAC;CAAiB;CAAsB;AAAwB;AAC7G,MAAa,0BAA0B;CACrC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,MAAa,qBAAqB;CAAC;CAAY;CAAgB;CAAiB;AAAwB;AACxG,MAAa,uBAAuB,CAAC,oBAAoB;AACzD,MAAa,gBAAgB;AAC7B,MAAa,kBAAkB;AAC/B,MAAa,eAAe;AAE5B,MAAa,iBAAiB;AAC9B,MAAa,mBAAmB;AAChC,MAAa,gBAAgB;AAE7B,MAAa,qBAAqB;;;;;AAMlC,SAAgB,aAAa,IAAY,SAAyB,OAAe;CAC/E,OAAO,gCAAgC,GAAG,GAAG;AAC/C"}