Skip to content

Commit

Permalink
fix(server): fix too large entity error when upload large func (#1882)
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal authored Mar 1, 2024
1 parent d9f527b commit fdf96bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit fdf96bb

Please sign in to comment.