add import limit for the environment variables
This commit is contained in:
parent
7c95761990
commit
0185ec57c7
|
@ -29,6 +29,7 @@ PDF_MAX_BUFFER=
|
|||
SCREENSHOT_MAX_BUFFER=
|
||||
READABILITY_MAX_BUFFER=
|
||||
PREVIEW_MAX_BUFFER=
|
||||
IMPORT_LIMIT=
|
||||
|
||||
# AWS S3 Settings
|
||||
SPACES_KEY=
|
||||
|
|
|
@ -9,7 +9,9 @@ import importFromWallabag from "@/lib/api/controllers/migration/importFromWallab
|
|||
export const config = {
|
||||
api: {
|
||||
bodyParser: {
|
||||
sizeLimit: "10mb",
|
||||
sizeLimit: process.env.IMPORT_LIMIT
|
||||
? process.env.IMPORT_LIMIT + "mb"
|
||||
: "10mb",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Ŝarĝante…
Reference in New Issue