Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

wip

Edward Cuif991ee812481
diff --git a/server/src/index.ts b/server/src/index.ts
index b246260c4..6abe1e628 100644
--- a/server/src/index.ts
+++ b/server/src/index.ts
@@ -110,11 +110,9 @@ server.register(cors, {
credentials: true,
});
-// TODO: Remove fileSize limit for self-hosted?
-// Would be bad if users accidentally crashed server with file that's too large though
server.register(multipart, {
limits: {
- fileSize: 100 * 1024 * 1024, // 100 MB max file size
+ fileSize: IS_CLOUD ? 100 * 1024 * 1024 : undefined, // 100 MB max file size, infinite for self-hosted
files: 1, // only allow 1 file
}
});
diff --git a/server/src/services/import/workers/dataInsertWorker.ts b/server/src/services/import/workers/dataInsertWorker.ts
index 253541fd7..41b8932b9 100644
--- a/server/src/services/import/workers/dataInsertWorker.ts
+++ b/server/src/services/import/workers/dataInsertWorker.ts
@@ -35,7 +35,7 @@ export async function registerDataInsertWorker() {
} catch (error) {
console.error("Error in data insert worker:", error);
await ImportStatusManager.updateStatus(importId, "failed", "Error inserting chunk");
- // throw error;
+ throw error;
}
});
}