Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

1.1 KB
Raw Blame
// SPDX-License-Identifier: LicenseRef-Carbon-Commercial
// Carbon Enterprise file, licensed only under the Carbon Commercial License
// (packages/ee/LICENSE). Not AGPL. Running, modifying, or copying it beyond those terms requires a commercial license.

/**
 * Values shared by the integration config (bundled for BOTH client and
 * server) and the API client (server-only). They live here, free of imports,
 * because anything `config.tsx` reaches must be safe to serve to the browser —
 * importing these from `client.ts` pulled `@carbon/auth/client.server` into the
 * client bundle, Vite refused to serve it, and the whole app stopped hydrating.
 */

export const MOUNT_DEFAULT_BASE_URL = "https://api.mount.cloud";

export const MOUNT_API_VERSION = "2026-06-01";

export const MOUNT_INTEGRATION_ID = "mount";

/** The integration's action ids, by the entity type each one publishes. */
export const MOUNT_PUBLISH_ACTION_IDS = {
  customer: "push-customers",
  supplier: "push-suppliers",
  item: "push-parts"
} as const;

export function isHttpsUrl(value: string) {
  try {
    return new URL(value).protocol === "https:";
  } catch {
    return false;
  }
}