fix(server): fix too large entity error when upload large func (#1882)

This commit is contained in:
0fatal 2024-03-01 15:35:32 +08:00 committed by GitHub
parent d9f527b5dc
commit fdf96bb51d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,7 @@ import { ServerConfig } from './constants'
import { InitializerService } from './initializer/initializer.service'
import { SystemDatabase } from './system-database'
import * as helmet from 'helmet'
import * as bodyParser from 'body-parser'
async function bootstrap() {
await SystemDatabase.ready
@ -31,6 +32,7 @@ async function bootstrap() {
app.use(compression())
app.use(helmet.hidePoweredBy())
app.use(bodyParser.json({ limit: '1mb' }))
// for swagger api
const config = new DocumentBuilder()