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.

build: import erp url from env package

Brad Barbin50fdd58b60c1
diff --git a/apps/erp/package.json b/apps/erp/package.json
index ba5367297d..a689a54b00 100644
--- a/apps/erp/package.json
+++ b/apps/erp/package.json
@@ -15,6 +15,7 @@
"@carbon/database": "workspace:*",
"@carbon/documents": "workspace:*",
"@carbon/ee": "workspace:*",
+ "@carbon/env": "workspace:*",
"@carbon/form": "workspace:*",
"@carbon/jobs": "workspace:*",
"@carbon/kv": "workspace:*",
diff --git a/ci/src/deploy.ts b/ci/src/deploy.ts
index 3f3ef02ab8..aa14204742 100644
--- a/ci/src/deploy.ts
+++ b/ci/src/deploy.ts
@@ -27,7 +27,7 @@ export type Workspace = {
access_token: string | null;
anon_key: string | null;
database_password: string | null;
- jwt_key: string | null;
+ jwt_secret: string | null;
service_role_key: string | null;
// App Configuration
@@ -123,7 +123,7 @@ async function deploy(): Promise<void> {
jira_client_secret,
jira_oauth_redirect_url,
jira_state_secret,
- jwt_key,
+ jwt_secret,
openai_api_key,
posthog_api_host,
posthog_project_public_key,
@@ -293,7 +293,7 @@ async function deploy(): Promise<void> {
STRIPE_WEBHOOK_SECRET: stripe_webhook_secret ?? undefined,
SUPABASE_ANON_KEY: anon_key,
SUPABASE_DB_URL: database_connection_pooler_url,
- SUPABASE_JWT_SECRET: jwt_key ?? undefined,
+ SUPABASE_JWT_SECRET: jwt_secret ?? undefined,
SUPABASE_SERVICE_ROLE_KEY: service_role_key,
SUPABASE_URL: database_url,
URL_ERP: url_erp,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1444a1c066..3158480a6b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -565,6 +565,9 @@ importers:
'@carbon/ee':
specifier: workspace:*
version: link:../../packages/ee
+ '@carbon/env':
+ specifier: workspace:*
+ version: link:../../packages/env
'@carbon/form':
specifier: workspace:*
version: link:../../packages/form
@@ -648,7 +651,7 @@ importers:
version: 3.4.5([email protected])
'@react-router/remix-routes-option-adapter':
specifier: 'catalog:'
'@react-router/serve':
specifier: 'catalog:'
@@ -693,7 +696,7 @@ importers:
'@vercel/react-router':
specifier: 'catalog:'
'@visx/responsive':
specifier: 2.17.0
version: 2.17.0([email protected])
@@ -738,7 +741,7 @@ importers:
inngest:
specifier: ^3.52.7
intl-parse-accept-language:
specifier: 'catalog:'
version: 1.0.0
@@ -919,16 +922,16 @@ importers:
'@lingui/vite-plugin':
specifier: 'catalog:'
'@react-router/dev':
specifier: 'catalog:'
'@tailwindcss/typography':
specifier: 'catalog:'
version: 0.5.19([email protected])
'@tailwindcss/vite':
specifier: 'catalog:'
'@types/d3':
specifier: 7.4.3
version: 7.4.3
@@ -985,13 +988,13 @@ importers:
version: 5.8.3
vite:
specifier: 'catalog:'
vite-plugin-babel-macros:
specifier: 'catalog:'
vitest:
specifier: 'catalog:'
apps/mes:
dependencies:
@@ -1066,7 +1069,7 @@ importers:
'@lingui/vite-plugin':
specifier: 'catalog:'
'@nanostores/react':
specifier: 'catalog:'
@@ -1078,10 +1081,10 @@ importers:
version: 3.4.5([email protected])
'@react-router/dev':
specifier: 'catalog:'
'@react-router/remix-routes-option-adapter':
specifier: 'catalog:'
'@react-router/serve':
specifier: 'catalog:'
@@ -1102,7 +1105,7 @@ importers:
version: 0.5.19([email protected])
'@tailwindcss/vite':
specifier: 'catalog:'
'@tiptap/core':
specifier: 'catalog:'
version: 2.27.2(@tiptap/[email protected])
@@ -1144,7 +1147,7 @@ importers:
'@vercel/react-router':
specifier: 'catalog:'
'@xyflow/react':
specifier: 12.10.2
@@ -1262,10 +1265,10 @@ importers:
version: 5.8.3
vite:
specifier: 'catalog:'
vite-plugin-babel-macros:
specifier: 'catalog:'
wait-on:
specifier: 'catalog:'
version: 7.2.0
@@ -19649,14 +19652,6 @@ snapshots:
optionalDependencies:
- dependencies:
- '@vitest/spy': 4.1.6
- estree-walker: 3.0.3
- magic-string: 0.30.21
- optionalDependencies:
-
dependencies:
'@vitest/spy': 4.1.6
@@ -21550,44 +21545,6 @@ snapshots:
- dependencies:
- '@bufbuild/protobuf': 2.11.0
- '@inngest/ai': 0.1.7
- '@jpwilliams/waitgroup': 2.1.1
- '@opentelemetry/api': 1.9.0
- '@opentelemetry/auto-instrumentations-node': 0.72.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))
- '@opentelemetry/context-async-hooks': 2.6.1(@opentelemetry/[email protected])
- '@opentelemetry/exporter-trace-otlp-http': 0.214.0(@opentelemetry/[email protected])
- '@opentelemetry/instrumentation': 0.214.0(@opentelemetry/[email protected])
- '@opentelemetry/resources': 2.6.1(@opentelemetry/[email protected])
- '@opentelemetry/sdk-trace-base': 2.6.1(@opentelemetry/[email protected])
- '@standard-schema/spec': 1.1.0
- '@traceloop/instrumentation-anthropic': 0.20.0
- '@types/debug': 4.1.13
- '@types/ms': 2.1.0
- canonicalize: 1.0.8
- chalk: 4.1.2
- cross-fetch: 4.1.0
- debug: 4.4.3([email protected])
- hash.js: 1.1.7
- json-stringify-safe: 5.0.1
- ms: 2.1.3
- serialize-error-cjs: 0.1.4
- strip-ansi: 5.2.0
- temporal-polyfill: 0.2.5
- ulid: 2.4.0
- zod: 3.25.76
- optionalDependencies:
- express: 4.22.1
- hono: 4.12.14
- typescript: 5.8.3
- transitivePeerDependencies:
- - '@opentelemetry/core'
- - encoding
- - supports-color
-
dependencies:
'@bufbuild/protobuf': 2.11.0
@@ -25221,34 +25178,6 @@ snapshots:
transitivePeerDependencies:
- msw
- dependencies:
- '@vitest/expect': 4.1.6
- '@vitest/pretty-format': 4.1.6
- '@vitest/runner': 4.1.6
- '@vitest/snapshot': 4.1.6
- '@vitest/spy': 4.1.6
- '@vitest/utils': 4.1.6
- es-module-lexer: 2.0.0
- expect-type: 1.3.0
- magic-string: 0.30.21
- obug: 2.1.1
- pathe: 2.0.3
- picomatch: 4.0.4
- std-env: 4.0.0
- tinybench: 2.9.0
- tinyexec: 1.1.1
- tinyglobby: 0.2.16
- tinyrainbow: 3.1.0
- why-is-node-running: 2.3.0
- optionalDependencies:
- '@opentelemetry/api': 1.9.0
- '@types/node': 24.12.2
- transitivePeerDependencies:
- - msw
-
dependencies:
'@vitest/expect': 4.1.6