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.

docs: serve OG/canonical from docs.carbon.ms so shared links embed the card

Sidwebworks5ed38c69d3d7
diff --git a/apps/docs/lib/seo.ts b/apps/docs/lib/seo.ts
index cef81eea84..62b1e080d7 100644
--- a/apps/docs/lib/seo.ts
+++ b/apps/docs/lib/seo.ts
@@ -1,8 +1,14 @@
import type { Metadata } from "next";
-/** Canonical site origin. Matches `metadataBase` in the root layout. */
+/**
+ * Canonical site origin — the host these docs are actually served from, used as
+ * `metadataBase` in the root layout. It MUST be the docs subdomain, not the
+ * marketing root (`carbon.ms`): relative URLs (the `/og` card, canonicals) resolve
+ * against this, and `carbon.ms` is a separate app with no working `/og` route, so
+ * pointing here at the root would make every shared link's embed image 404/500.
+ */
export const SITE = {
- url: "https://carbon.ms",
+ url: "https://docs.carbon.ms",
name: "Carbon",
} as const;