⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
add import limit for the environment variables
daniel31x130185ec57c717
diff --git a/.env.sample b/.env.sampleindex 65f5a816..b7161ae9 100644--- a/.env.sample+++ b/.env.sample@@ -29,6 +29,7 @@ PDF_MAX_BUFFER=SCREENSHOT_MAX_BUFFER=READABILITY_MAX_BUFFER=PREVIEW_MAX_BUFFER=+IMPORT_LIMIT=# AWS S3 SettingsSPACES_KEY=diff --git a/pages/api/v1/migration/index.ts b/pages/api/v1/migration/index.tsindex 0bf3d767..8cdf5db9 100644--- a/pages/api/v1/migration/index.ts+++ b/pages/api/v1/migration/index.ts@@ -9,7 +9,9 @@ import importFromWallabag from "@/lib/api/controllers/migration/importFromWallabexport const config = {api: {bodyParser: {- sizeLimit: "10mb",+ sizeLimit: process.env.IMPORT_LIMIT+ ? process.env.IMPORT_LIMIT + "mb"+ : "10mb",},},};