fix(server): body parser limit (#10260)
This commit is contained in:
@@ -29,9 +29,9 @@ export async function createTestingApp(
|
|||||||
bodyParser: true,
|
bodyParser: true,
|
||||||
rawBody: true,
|
rawBody: true,
|
||||||
});
|
});
|
||||||
if (AFFiNE.flavor.doc) {
|
|
||||||
app.useBodyParser('raw');
|
app.useBodyParser('raw');
|
||||||
}
|
|
||||||
const logger = new AFFiNELogger();
|
const logger = new AFFiNELogger();
|
||||||
|
|
||||||
logger.setLogLevels([TEST_LOG_LEVEL]);
|
logger.setLogLevels([TEST_LOG_LEVEL]);
|
||||||
|
|||||||
@@ -24,9 +24,7 @@ export async function createApp() {
|
|||||||
bufferLogs: true,
|
bufferLogs: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (AFFiNE.flavor.doc) {
|
app.useBodyParser('raw', { limit: '100mb' });
|
||||||
app.useBodyParser('raw');
|
|
||||||
}
|
|
||||||
|
|
||||||
app.useLogger(app.get(AFFiNELogger));
|
app.useLogger(app.get(AFFiNELogger));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user