@clerk/shared
Version:
Internal package utils used by the Clerk SDKs
11 lines (9 loc) • 351 B
JavaScript
//#region src/utils/instance.ts
/**
* Check if the frontendApi ends with a staging domain
*/
function isStaging(frontendApi) {
return frontendApi.endsWith(".lclstage.dev") || frontendApi.endsWith(".stgstage.dev") || frontendApi.endsWith(".clerkstage.dev") || frontendApi.endsWith(".accountsstage.dev");
}
//#endregion
exports.isStaging = isStaging;