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: add https:// protocol to thumbnail generation jobs

Brad Barbind66aab04fc3d
diff --git a/.gitignore b/.gitignore
index 5d9b1bdb17..8f26fe0968 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,9 +14,13 @@ dist-ssr
server/dist
public/dist
vite.config.ts.timestamp*
-
+.mcp.json
opencode.json
+# translations
+**/locales/**/*.mjs
+**/locales/**/*.js
+
scripts/migrations/data
scripts/paperless-test.ts
scripts/test-get-stripe-customer.ts
diff --git a/packages/jobs/src/inngest/functions/tasks/model-thumbnail.ts b/packages/jobs/src/inngest/functions/tasks/model-thumbnail.ts
index 10577dd1e8..56e74c2bf0 100644
--- a/packages/jobs/src/inngest/functions/tasks/model-thumbnail.ts
+++ b/packages/jobs/src/inngest/functions/tasks/model-thumbnail.ts
@@ -12,7 +12,10 @@ export const modelThumbnailFunction = inngest.createFunction(
VERCEL_URL === undefined || VERCEL_URL.includes("localhost");
const getModelUrl = (id: string) => {
- const domain = isLocal ? "http://localhost:3000" : VERCEL_URL;
+ if (isLocal) return `http://localhost:3000/file/model/${id}`;
+ const domain = VERCEL_URL?.startsWith("https://")
+ ? VERCEL_URL
+ : `https://${VERCEL_URL}`;
return `${domain}/file/model/${id}`;
};