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