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: snippet

Sidwebworks67b37f8ecd89
diff --git a/apps/erp/app/modules/api/ui/Snippets.tsx b/apps/erp/app/modules/api/ui/Snippets.tsx
index ffe26b1d92..06b3fdb238 100644
--- a/apps/erp/app/modules/api/ui/Snippets.tsx
+++ b/apps/erp/app/modules/api/ui/Snippets.tsx
@@ -435,7 +435,7 @@ const snippets = {
[
`export CARBON_API_URL="${apiUrl}"`,
`export CARBON_API_KEY="${apiKey}"`,
- !isProxied && `export CARBON_PUBLIC_KEY="${PUBLIC_KEY}`
+ !isProxied ? `export CARBON_PUBLIC_KEY="${PUBLIC_KEY}"` : ""
].join("\n")
),
js: createJsSnippet(
@@ -443,7 +443,7 @@ const snippets = {
`// .env`,
`CARBON_API_URL = "${apiUrl}"`,
`CARBON_API_KEY = "${apiKey}"`,
- !isProxied && `CARBON_PUBLIC_KEY = "${PUBLIC_KEY}"`
+ !isProxied ? `CARBON_PUBLIC_KEY = "${PUBLIC_KEY}"` : ""
].join("\n")
)
}),