Increase JSON and URL-encoded body size limits to 1GB
This commit is contained in:
parent
4da4ff98ba
commit
1d60f55cb8
1 changed files with 2 additions and 1 deletions
3
api.js
3
api.js
|
|
@ -13,7 +13,8 @@ if (!fs.existsSync(CACHE_DIR)) {
|
|||
fs.mkdirSync(CACHE_DIR);
|
||||
}
|
||||
|
||||
app.use(express.json());
|
||||
app.use(express.json({ limit: '1gb' }));
|
||||
app.use(express.urlencoded({ limit: '1gb', extended: true }));
|
||||
|
||||
function normalizeConfig(config) {
|
||||
// Remove null, undefined, and empty string values
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue