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: increase max duration for elements route

Brad Barbin2796eb6b1bda
diff --git a/apps/erp/app/routes/api+/integrations.onshape.d.$did.v.$vid.elements.ts b/apps/erp/app/routes/api+/integrations.onshape.d.$did.v.$vid.elements.ts
index ce285d9139..675525e9eb 100644
--- a/apps/erp/app/routes/api+/integrations.onshape.d.$did.v.$vid.elements.ts
+++ b/apps/erp/app/routes/api+/integrations.onshape.d.$did.v.$vid.elements.ts
@@ -1,8 +1,8 @@
import { requirePermissions } from "@carbon/auth/auth.server";
+import { OnshapeClient, Onshape as OnshapeConfig } from "@carbon/integrations";
import type { ShouldRevalidateFunction } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json } from "@vercel/remix";
-import { Onshape as OnshapeConfig, OnshapeClient } from "@carbon/integrations";
import { getIntegration } from "~/modules/settings/settings.service";
export const shouldRevalidate: ShouldRevalidateFunction = () => {
@@ -10,6 +10,7 @@ export const shouldRevalidate: ShouldRevalidateFunction = () => {
};
export const config = {
+ maxDuration: 300,
runtime: "nodejs",
};