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 autodesk scripts and links

Brad Barbinefb520dfcf39
diff --git a/apps/carbon/app/root.tsx b/apps/carbon/app/root.tsx
index 793d619279..3d3d081fe0 100644
--- a/apps/carbon/app/root.tsx
+++ b/apps/carbon/app/root.tsx
@@ -113,10 +113,6 @@ function Document({
<title>{title}</title>
<link rel="manifest" href="/site.webmanifest" />
<Links />
- <script
- defer
- src="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/viewer3D.min.js"
- ></script>
</head>
<body className="h-full bg-background antialiased selection:bg-primary/10 selection:text-primary">
{children}
diff --git a/apps/carbon/app/routes/x+/_layout.tsx b/apps/carbon/app/routes/x+/_layout.tsx
index 5949c88e24..c830425dd1 100644
--- a/apps/carbon/app/routes/x+/_layout.tsx
+++ b/apps/carbon/app/routes/x+/_layout.tsx
@@ -39,15 +39,6 @@ export const shouldRevalidate: ShouldRevalidateFunction = ({
return defaultShouldRevalidate;
};
-export function links() {
- return [
- {
- rel: "stylesheet",
- href: "https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/style.min.css",
- },
- ];
-}
-
export async function loader({ request }: LoaderFunctionArgs) {
const { accessToken, companyId, expiresAt, expiresIn, userId } =
await requireAuthSession(request, { verify: true });
diff --git a/apps/mes/app/root.tsx b/apps/mes/app/root.tsx
index e9197554f0..3c0dd2818f 100644
--- a/apps/mes/app/root.tsx
+++ b/apps/mes/app/root.tsx
@@ -114,10 +114,6 @@ function Document({
<Meta />
<link rel="manifest" href="/site.webmanifest" />
<Links />
- <script
- defer
- src="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/viewer3D.min.js"
- ></script>
</head>
<body className="h-full bg-background antialiased selection:bg-primary/10 selection:text-primary">
{children}
diff --git a/apps/mes/app/routes/x+/_layout.tsx b/apps/mes/app/routes/x+/_layout.tsx
index ede7037815..b46202afd9 100644
--- a/apps/mes/app/routes/x+/_layout.tsx
+++ b/apps/mes/app/routes/x+/_layout.tsx
@@ -34,15 +34,6 @@ import {
import { defaultLayout } from "~/utils/layout";
import { path } from "~/utils/path";
-export function links() {
- return [
- {
- rel: "stylesheet",
- href: "https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/style.min.css",
- },
- ];
-}
-
export async function loader({ request }: LoaderFunctionArgs) {
const { accessToken, companyId, expiresAt, expiresIn, userId } =
await requireAuthSession(request, { verify: true });