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: remove explicit nodejs runtime config

Brad Barbin416556495e7c
diff --git a/apps/carbon/app/components/Layout/Navigation/GroupedContentSidebar.tsx b/apps/carbon/app/components/Layout/Navigation/GroupedContentSidebar.tsx
index 28a0b9beec..dfa8cecd2c 100644
--- a/apps/carbon/app/components/Layout/Navigation/GroupedContentSidebar.tsx
+++ b/apps/carbon/app/components/Layout/Navigation/GroupedContentSidebar.tsx
@@ -27,7 +27,7 @@ const GroupedContentSidebar = ({
{group.name}
</h4>
{group.routes.map((route) => {
- const isActive = location.pathname === route.to;
+ const isActive = location.pathname.includes(route.to);
return (
<Button
key={route.name}
diff --git a/apps/carbon/app/components/Table/Table.tsx b/apps/carbon/app/components/Table/Table.tsx
index fc700536d7..35e8ac0030 100644
--- a/apps/carbon/app/components/Table/Table.tsx
+++ b/apps/carbon/app/components/Table/Table.tsx
@@ -672,7 +672,7 @@ const Table = <T extends object>({
(sortable ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <div className="flex justify-start items-center text-xs text-foreground">
+ <div className="flex justify-start items-center">
{flexRender(
header.column.columnDef.header,
header.getContext()
diff --git a/apps/carbon/app/routes/api+/autodesk.upload.ts b/apps/carbon/app/routes/api+/autodesk.upload.ts
index 40f7a97151..b4d2c06ca6 100644
--- a/apps/carbon/app/routes/api+/autodesk.upload.ts
+++ b/apps/carbon/app/routes/api+/autodesk.upload.ts
@@ -6,7 +6,7 @@ import { flash } from "~/services/session.server";
import type { autodeskUploadTask } from "~/trigger/autodesk-upload";
import { error } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action({ request }: ActionFunctionArgs) {
const { client, companyId, userId } = await requirePermissions(request, {
diff --git a/apps/carbon/app/routes/assets+/theme[.]css.ts b/apps/carbon/app/routes/assets+/theme[.]css.ts
index 72d6d89e19..a6c9a8fe35 100644
--- a/apps/carbon/app/routes/assets+/theme[.]css.ts
+++ b/apps/carbon/app/routes/assets+/theme[.]css.ts
@@ -2,7 +2,7 @@ import { getThemeCode, themes } from "@carbon/utils";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { getTheme } from "~/services/theme.server";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function loader({ request }: LoaderFunctionArgs) {
const theme = getTheme(request) as string;
diff --git a/apps/carbon/app/routes/file+/purchase-order+/$orderId[.]pdf.tsx b/apps/carbon/app/routes/file+/purchase-order+/$orderId[.]pdf.tsx
index ab6961a10a..312779ee1c 100644
--- a/apps/carbon/app/routes/file+/purchase-order+/$orderId[.]pdf.tsx
+++ b/apps/carbon/app/routes/file+/purchase-order+/$orderId[.]pdf.tsx
@@ -11,7 +11,7 @@ import {
import { getCompany } from "~/modules/settings";
import { requirePermissions } from "~/services/auth/auth.server";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function loader({ request, params }: LoaderFunctionArgs) {
const { client, companyId } = await requirePermissions(request, {
diff --git a/apps/carbon/app/routes/file+/quote+/$id[.]pdf.tsx b/apps/carbon/app/routes/file+/quote+/$id[.]pdf.tsx
index f06bd25d75..043561829e 100644
--- a/apps/carbon/app/routes/file+/quote+/$id[.]pdf.tsx
+++ b/apps/carbon/app/routes/file+/quote+/$id[.]pdf.tsx
@@ -17,7 +17,7 @@ import { getCompany } from "~/modules/settings";
import { getBase64ImageFromSupabase } from "~/modules/shared";
import { requirePermissions } from "~/services/auth/auth.server";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function loader({ request, params }: LoaderFunctionArgs) {
const { client, companyId } = await requirePermissions(request, {
diff --git a/apps/carbon/app/routes/file+/sales-order+/$id[.]pdf.tsx b/apps/carbon/app/routes/file+/sales-order+/$id[.]pdf.tsx
index 19ff51ab78..a3387ca91b 100644
--- a/apps/carbon/app/routes/file+/sales-order+/$id[.]pdf.tsx
+++ b/apps/carbon/app/routes/file+/sales-order+/$id[.]pdf.tsx
@@ -11,7 +11,7 @@ import {
import { getCompany } from "~/modules/settings";
import { requirePermissions } from "~/services/auth/auth.server";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function loader({ request, params }: LoaderFunctionArgs) {
const { client, companyId } = await requirePermissions(request, {
diff --git a/apps/carbon/app/routes/oauth+/authorize.tsx b/apps/carbon/app/routes/oauth+/authorize.tsx
index 39e56ede99..474ea41abd 100644
--- a/apps/carbon/app/routes/oauth+/authorize.tsx
+++ b/apps/carbon/app/routes/oauth+/authorize.tsx
@@ -5,7 +5,7 @@ import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";
import { z } from "zod";
import { requirePermissions } from "~/services/auth/auth.server";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function loader({ request }: LoaderFunctionArgs) {
const { client, companyId, userId } = await requirePermissions(request, {
diff --git a/apps/carbon/app/routes/oauth+/token.tsx b/apps/carbon/app/routes/oauth+/token.tsx
index a5a9f21ac4..dd00112688 100644
--- a/apps/carbon/app/routes/oauth+/token.tsx
+++ b/apps/carbon/app/routes/oauth+/token.tsx
@@ -3,7 +3,7 @@ import { json, type ActionFunctionArgs } from "@vercel/remix";
import { z } from "zod";
import { getSupabaseServiceRole } from "~/lib/supabase";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
const oauthTokenValidator = z.object({
grant_type: z.enum(["authorization_code", "refresh_token"]),
diff --git a/apps/carbon/app/routes/x+/documents+/search.view.$documentId.tsx b/apps/carbon/app/routes/x+/documents+/search.view.$documentId.tsx
index ca049a2ffd..1e8b946c2b 100644
--- a/apps/carbon/app/routes/x+/documents+/search.view.$documentId.tsx
+++ b/apps/carbon/app/routes/x+/documents+/search.view.$documentId.tsx
@@ -9,7 +9,7 @@ import { notFound } from "~/utils/http";
import { path } from "~/utils/path";
import { error } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function loader({ request, params }: LoaderFunctionArgs) {
const { client } = await requirePermissions(request, {
diff --git a/apps/carbon/app/routes/x+/job+/new.tsx b/apps/carbon/app/routes/x+/job+/new.tsx
index a3a31e28ce..95e3ffd933 100644
--- a/apps/carbon/app/routes/x+/job+/new.tsx
+++ b/apps/carbon/app/routes/x+/job+/new.tsx
@@ -26,7 +26,7 @@ export const handle: Handle = {
module: "production",
};
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action({ request }: ActionFunctionArgs) {
assertIsPost(request);
diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx
index aff5b73a69..7450c6790f 100644
--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx
+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx
@@ -7,7 +7,7 @@ import type { postTransactionTask } from "~/trigger/post-transaction";
import { path } from "~/utils/path";
import { error } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action({ request, params }: ActionFunctionArgs) {
const { client, userId } = await requirePermissions(request, {
diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.release.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.release.tsx
index f531cff5a0..5c948a4527 100644
--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.release.tsx
+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.release.tsx
@@ -22,7 +22,7 @@ import { assertIsPost } from "~/utils/http";
import { path } from "~/utils/path";
import { error, success } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action(args: ActionFunctionArgs) {
const { request, params } = args;
diff --git a/apps/carbon/app/routes/x+/quote+/$quoteId.release.tsx b/apps/carbon/app/routes/x+/quote+/$quoteId.release.tsx
index 449bc25cf4..6684e82f48 100644
--- a/apps/carbon/app/routes/x+/quote+/$quoteId.release.tsx
+++ b/apps/carbon/app/routes/x+/quote+/$quoteId.release.tsx
@@ -22,7 +22,7 @@ import { assertIsPost } from "~/utils/http";
import { path } from "~/utils/path";
import { error, success } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action(args: ActionFunctionArgs) {
const { request, params } = args;
diff --git a/apps/carbon/app/routes/x+/receipt+/$receiptId.post.tsx b/apps/carbon/app/routes/x+/receipt+/$receiptId.post.tsx
index 46e79c4ffd..fd9e2aafb0 100644
--- a/apps/carbon/app/routes/x+/receipt+/$receiptId.post.tsx
+++ b/apps/carbon/app/routes/x+/receipt+/$receiptId.post.tsx
@@ -7,7 +7,7 @@ import type { postTransactionTask } from "~/trigger/post-transaction";
import { path } from "~/utils/path";
import { error } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action({ request, params }: ActionFunctionArgs) {
const { client, userId } = await requirePermissions(request, {
diff --git a/apps/carbon/app/routes/x+/sales-order+/$orderId.$lineId.job.tsx b/apps/carbon/app/routes/x+/sales-order+/$orderId.$lineId.job.tsx
index f226033931..e28fc8fed1 100644
--- a/apps/carbon/app/routes/x+/sales-order+/$orderId.$lineId.job.tsx
+++ b/apps/carbon/app/routes/x+/sales-order+/$orderId.$lineId.job.tsx
@@ -17,7 +17,7 @@ import { assertIsPost } from "~/utils/http";
import { path } from "~/utils/path";
import { error } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action({ request, params }: ActionFunctionArgs) {
assertIsPost(request);
diff --git a/apps/carbon/app/routes/x+/sales-rfq+/$rfqId.drag.tsx b/apps/carbon/app/routes/x+/sales-rfq+/$rfqId.drag.tsx
index 028a2576ca..1dbd0f5475 100644
--- a/apps/carbon/app/routes/x+/sales-rfq+/$rfqId.drag.tsx
+++ b/apps/carbon/app/routes/x+/sales-rfq+/$rfqId.drag.tsx
@@ -11,7 +11,7 @@ import { assertIsPost } from "~/utils/http";
import { path } from "~/utils/path";
import { error } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action({ request, params }: ActionFunctionArgs) {
assertIsPost(request);
diff --git a/apps/carbon/app/routes/x+/users+/bulk-edit-permissions.tsx b/apps/carbon/app/routes/x+/users+/bulk-edit-permissions.tsx
index e585e643b0..08a0e90125 100644
--- a/apps/carbon/app/routes/x+/users+/bulk-edit-permissions.tsx
+++ b/apps/carbon/app/routes/x+/users+/bulk-edit-permissions.tsx
@@ -14,7 +14,7 @@ import { assertIsPost } from "~/utils/http";
import { getParams, path } from "~/utils/path";
import { error, success } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action({ request }: ActionFunctionArgs) {
assertIsPost(request);
diff --git a/apps/carbon/app/routes/x+/users+/deactivate.tsx b/apps/carbon/app/routes/x+/users+/deactivate.tsx
index d66a209c46..76be97cab6 100644
--- a/apps/carbon/app/routes/x+/users+/deactivate.tsx
+++ b/apps/carbon/app/routes/x+/users+/deactivate.tsx
@@ -10,7 +10,7 @@ import type { userAdminTask } from "~/trigger/user-admin";
import { safeRedirect } from "~/utils/http";
import { error, success } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action({ request }: ActionFunctionArgs) {
const { client } = await requirePermissions(request, {
diff --git a/apps/carbon/app/routes/x+/users+/resend-invite.tsx b/apps/carbon/app/routes/x+/users+/resend-invite.tsx
index 6e6a588fbf..2e90160413 100644
--- a/apps/carbon/app/routes/x+/users+/resend-invite.tsx
+++ b/apps/carbon/app/routes/x+/users+/resend-invite.tsx
@@ -9,7 +9,7 @@ import { flash } from "~/services/session.server";
import { userAdminTask } from "~/trigger/user-admin";
import { error, success } from "~/utils/result";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function action({ request }: ActionFunctionArgs) {
const { client } = await requirePermissions(request, {
diff --git a/apps/developers/app/routes/assets+/theme[.]css.ts b/apps/developers/app/routes/assets+/theme[.]css.ts
index 72d6d89e19..a6c9a8fe35 100644
--- a/apps/developers/app/routes/assets+/theme[.]css.ts
+++ b/apps/developers/app/routes/assets+/theme[.]css.ts
@@ -2,7 +2,7 @@ import { getThemeCode, themes } from "@carbon/utils";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { getTheme } from "~/services/theme.server";
-export const config = { runtime: "nodejs" };
+// export const config = { runtime: "nodejs" };
export async function loader({ request }: LoaderFunctionArgs) {
const theme = getTheme(request) as string;
diff --git a/packages/react/src/Table.tsx b/packages/react/src/Table.tsx
index 6a17aba554..ff13ec1b76 100644
--- a/packages/react/src/Table.tsx
+++ b/packages/react/src/Table.tsx
@@ -85,7 +85,7 @@ const Th = forwardRef<
<th
ref={ref}
className={cn(
- "group-hover:bg-primary/5 h-11 px-6 text-left align-middle uppercase bg-card font-semibold tracking-tight text-foreground [&:has([role=checkbox])]:pr-0",
+ "group-hover:bg-primary/5 h-11 px-6 text-left align-middle uppercase bg-card font-semibold tracking-tight text-xs text-foreground [&:has([role=checkbox])]:pr-0",
className
)}
{...props}