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.

fix(docs): restore glossary text and X share cards

Sidwebworks4e09d9596e05
diff --git a/docs/app/robots.ts b/docs/app/robots.ts
index 0589aeef77..ae4bfd5ece 100644
--- a/docs/app/robots.ts
+++ b/docs/app/robots.ts
@@ -7,8 +7,9 @@ import { SITE } from "@/lib/seo";
export default function robots(): MetadataRoute.Robots {
return {
- // Allow everything except internal endpoints (search, OG generation).
- rules: [{ userAgent: "*", allow: "/", disallow: ["/api/", "/og"] }],
+ // Keep /og crawlable: X's crawler obeys robots.txt and drops the share
+ // card when its image path is disallowed.
+ rules: [{ userAgent: "*", allow: "/", disallow: ["/api/"] }],
sitemap: `${SITE.url}/sitemap.xml`,
host: SITE.url
};
diff --git a/docs/next.config.mjs b/docs/next.config.mjs
index d13357fbac..fd5d0e2b87 100644
--- a/docs/next.config.mjs
+++ b/docs/next.config.mjs
@@ -33,7 +33,9 @@ const config = {
// compiles the macro down to plain `{ id, message }` literals so docs reads
// `.message` directly without pulling the macro runtime.
experimental: {
- swcPlugins: [["@lingui/swc-plugin", {}]],
+ // "message" keeps the source English in production; the default ("auto")
+ // strips it to the id alone, which blanked every glossary entry.
+ swcPlugins: [["@lingui/swc-plugin", { descriptorFields: "message" }]],
// Static generation is the memory peak here: the API and MCP reference
// pages expand ~108 MDX sources into ~2,180 pages, rendered across a pool
// of worker processes that each hold their own Next runtime.