Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

hardcoded import size limit to 10mb to pass build error

daniel31x13fbc1d4b1134e
diff --git a/.env.sample b/.env.sample
index 1277ade0..384929e3 100644
--- a/.env.sample
+++ b/.env.sample
@@ -8,7 +8,6 @@ PAGINATION_TAKE_COUNT=
STORAGE_FOLDER=
AUTOSCROLL_TIMEOUT=
NEXT_PUBLIC_DISABLE_REGISTRATION=
-IMPORT_SIZE_LIMIT=
RE_ARCHIVE_LIMIT=
# AWS S3 Settings
diff --git a/pages/api/v1/migration/index.ts b/pages/api/v1/migration/index.ts
index e9505638..bfba4532 100644
--- a/pages/api/v1/migration/index.ts
+++ b/pages/api/v1/migration/index.ts
@@ -8,7 +8,7 @@ import verifyUser from "@/lib/api/verifyUser";
export const config = {
api: {
bodyParser: {
- sizeLimit: `${process.env.IMPORT_SIZE_LIMIT || "5"}mb`,
+ sizeLimit: "10mb",
},
},
};
diff --git a/types/enviornment.d.ts b/types/enviornment.d.ts
index b8da6f2a..df4b4ff5 100644
--- a/types/enviornment.d.ts
+++ b/types/enviornment.d.ts
@@ -8,7 +8,6 @@ declare global {
PAGINATION_TAKE_COUNT?: string;
STORAGE_FOLDER?: string;
AUTOSCROLL_TIMEOUT?: string;
- IMPORT_SIZE_LIMIT?: string;
RE_ARCHIVE_LIMIT?: string;
SPACES_KEY?: string;